sequelize-typescript-generator 8.0.0 → 8.1.0
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/README.md +1 -1
- package/build/builders/ModelBuilder.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,7 +148,9 @@ class ModelBuilder extends Builder_1.Builder {
|
|
|
148
148
|
const attributesInterfaceName = `${name}Attributes`;
|
|
149
149
|
if (strict) {
|
|
150
150
|
generatedCode += '\n';
|
|
151
|
-
const attributesInterface = ts.createInterfaceDeclaration(undefined,
|
|
151
|
+
const attributesInterface = ts.createInterfaceDeclaration(undefined, [
|
|
152
|
+
ts.createToken(ts.SyntaxKind.ExportKeyword),
|
|
153
|
+
], ts.createIdentifier(attributesInterfaceName), undefined, undefined, [
|
|
152
154
|
...(Object.values(columns).map(c => {
|
|
153
155
|
var _a;
|
|
154
156
|
return ts.createPropertySignature(undefined, ts.createIdentifier(c.name), c.autoIncrement || c.allowNull || c.defaultValue !== undefined ?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequelize-typescript-generator",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Automatically generates typescript models compatible with sequelize-typescript library (https://www.npmjs.com/package/sequelize-typescript) directly from your source database.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|