-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typing for format2 schema imports
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import schema_v19_09_workflows from "@schemas/gxformat2/v19_09/workflows.yaml"; | ||
import schema_common from "@schemas/gxformat2/common/common.yaml"; | ||
import schema_common_metaschema_base from "@schemas/gxformat2/common/metaschema/metaschema_base.yaml"; | ||
import schema_v19_09_process from "@schemas/gxformat2/v19_09/process.yaml"; | ||
import schema_common from "@schemas/gxformat2/common/common.yaml"; | ||
import schema_v19_09_workflows from "@schemas/gxformat2/v19_09/workflows.yaml"; | ||
import { SchemaDocument } from "./definitions"; | ||
|
||
/** | ||
* All gxformat2 version 19_09 schema documents. | ||
* | ||
* These documents are raw yaml documents loaded by webpack. | ||
* */ | ||
export const SCHEMA_DOCS_v19_09_MAP = new Map<string, SchemaDocument>([ | ||
[schema_common_metaschema_base.$base, schema_common_metaschema_base], | ||
[schema_v19_09_process.$base, schema_v19_09_process], | ||
[schema_common.$base, schema_common], | ||
[schema_v19_09_workflows.$base, schema_v19_09_workflows], | ||
]); | ||
export const SCHEMA_DOCS_v19_09_MAP = new Map<string, SchemaDocument>( | ||
[ | ||
schema_common_metaschema_base as SchemaDocument, | ||
schema_v19_09_process as SchemaDocument, | ||
schema_common as SchemaDocument, | ||
schema_v19_09_workflows as SchemaDocument, | ||
].map((schemaDoc) => [schemaDoc.$base, schemaDoc]) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
declare module "*.yaml" { | ||
const data: any; | ||
const data: unknown; | ||
export default data; | ||
} |