From a975a46e216f002dadec96071045b09d64ea2a9f Mon Sep 17 00:00:00 2001 From: TienLeok Ngo Date: Wed, 23 Oct 2019 15:16:09 +0800 Subject: [PATCH] Update entity.mst Fix for: Argument of type '{ type: "int"; unique: boolean; name: string; }' is not assignable to parameter of type 'PrimaryGeneratedColumnNumericOptions'. --- src/entity.mst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entity.mst b/src/entity.mst index e809475..49bd95f 100644 --- a/src/entity.mst +++ b/src/entity.mst @@ -12,8 +12,8 @@ import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne type:"{{type}}", {{/generated}}{{^generated}} @Column("{{type}}",{ {{#nullable}} nullable:true,{{/nullable}}{{^nullable}} nullable:false,{{/nullable}}{{#primary}} - primary:{{primary}},{{/primary}}{{/generated}}{{#unique}} - unique: true,{{/unique}}{{#length}} + primary:{{primary}},{{/primary}}{{#unique}} + unique: true,{{/unique}}{{/generated}}{{#length}} length:{{.}},{{/length}}{{#width}} width:{{.}},{{/width}}{{#unsigned}} unsigned: true,{{/unsigned}}{{#default}}