ArtifactAn auxiliary code artifact produced during code generation — a symbol declaration, an enum declaration, or an import statement.
Source effect/SchemaRepresentation.ts:227915 lines
export type type Artifact =
| {
readonly _tag: "Symbol"
readonly identifier: string
readonly generation: Code
}
| {
readonly _tag: "Enum"
readonly identifier: string
readonly generation: Code
}
| {
readonly _tag: "Import"
readonly importDeclaration: string
}
An auxiliary code artifact produced during code generation — a symbol
declaration, an enum declaration, or an import statement.
Artifact =
| {
readonly _tag: "Symbol"_tag: "Symbol"
readonly identifier: stringidentifier: string
readonly generation: Code(property) generation: {
runtime: string;
Type: string;
}
generation: type Code = {
readonly runtime: string
readonly Type: string
}
A pair of TypeScript source strings for a schema: runtime is the
executable Schema expression, Type is the corresponding TypeScript type.
Code
}
| {
readonly _tag: "Enum"_tag: "Enum"
readonly identifier: stringidentifier: string
readonly generation: Code(property) generation: {
runtime: string;
Type: string;
}
generation: type Code = {
readonly runtime: string
readonly Type: string
}
A pair of TypeScript source strings for a schema: runtime is the
executable Schema expression, Type is the corresponding TypeScript type.
Code
}
| {
readonly _tag: "Import"_tag: "Import"
readonly importDeclaration: stringimportDeclaration: string
}Referenced by 2 symbols