feat(csv-loader): export generated type definitions
This commit is contained in:
@@ -51,7 +51,7 @@ export function generateTypeDefinition(
|
|||||||
? typeDeclarations
|
? typeDeclarations
|
||||||
.map(
|
.map(
|
||||||
(decl) =>
|
(decl) =>
|
||||||
`type ${decl.name} = ${schemaToTypeString(decl.schema, resourceNames)};`,
|
`export type ${decl.name} = ${schemaToTypeString(decl.schema, resourceNames)};`,
|
||||||
)
|
)
|
||||||
.join("\n") + "\n\n"
|
.join("\n") + "\n\n"
|
||||||
: "";
|
: "";
|
||||||
|
|||||||
Reference in New Issue
Block a user