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 CHANGED
@@ -201,7 +201,7 @@ import {
201
201
  } from "sequelize-typescript";
202
202
  import { passport } from "./passport";
203
203
 
204
- interface personAttributes {
204
+ export interface personAttributes {
205
205
  person_id: number;
206
206
  name: string;
207
207
  passport_id: number;
@@ -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, undefined, ts.createIdentifier(attributesInterfaceName), undefined, 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.0.0",
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",