Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
bz888 committed Aug 23, 2023
1 parent d5029c1 commit 85ad055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/common-cosmos/src/codegen/util.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2020-2023 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {parseCosmosProjectManifest, CosmosProjectManifestVersioned} from '../project';
import {parseCosmosProjectManifest, ProjectManifestImpls} from '../project';

export function validateCosmosManifest(manifest: unknown): manifest is CosmosProjectManifestVersioned {
export function validateCosmosManifest(manifest: unknown): manifest is ProjectManifestImpls {
try {
return !!parseCosmosProjectManifest(manifest);
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SUPPORTED_VERSIONS = {

type Versions = keyof typeof SUPPORTED_VERSIONS;

type ProjectManifestImpls = InstanceType<(typeof SUPPORTED_VERSIONS)[Versions]>;
export type ProjectManifestImpls = InstanceType<(typeof SUPPORTED_VERSIONS)[Versions]>;

export function manifestIsV1_0_0(manifest: ICosmosProjectManifest): manifest is ProjectManifestV1_0_0Impl {
return manifest.specVersion === '1.0.0';
Expand Down

0 comments on commit 85ad055

Please sign in to comment.