@zenstackhq/sdk 3.3.3 → 3.4.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1519,10 +1519,10 @@ var TsSchemaGenerator = class {
|
|
|
1519
1519
|
generateModelsAndTypeDefs(model, options) {
|
|
1520
1520
|
const statements = [];
|
|
1521
1521
|
statements.push(this.generateSchemaImport(model, true, true, !!(options.lite || options.liteOnly), options.importWithFileExtension));
|
|
1522
|
-
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(
|
|
1523
|
-
ts.factory.createImportSpecifier(
|
|
1522
|
+
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(true, void 0, ts.factory.createNamedImports([
|
|
1523
|
+
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier(`ModelResult as $ModelResult`)),
|
|
1524
1524
|
...model.declarations.some(isTypeDef3) ? [
|
|
1525
|
-
ts.factory.createImportSpecifier(
|
|
1525
|
+
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier(`TypeDefResult as $TypeDefResult`))
|
|
1526
1526
|
] : []
|
|
1527
1527
|
])), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1528
1528
|
const dataModels = this.getAllDataModels(model);
|