feat(csv-loader): export generated type definitions
This commit is contained in:
parent
f03226221d
commit
f101c12097
|
|
@ -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"
|
||||||
: "";
|
: "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue