Skip to content

Commit ff2893d

Browse files
committed
TypeScript: fix syntax for HasOneCreateAssociationMixin
1 parent 3a3ad4b commit ff2893d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ export class AutoGenerator {
641641
str += `${sp}${rel.childProp}!: ${rel.childModel};\n`;
642642
str += `${sp}get${pchild}!: Sequelize.HasOneGetAssociationMixin<${rel.childModel}>;\n`;
643643
str += `${sp}set${pchild}!: Sequelize.HasOneSetAssociationMixin<${rel.childModel}, ${rel.childModel}Id>;\n`;
644-
str += `${sp}create${pchild}!: Sequelize.HasOneCreateAssociationMixin<${rel.childModel}CreationAttributes>;\n`;
644+
str += `${sp}create${pchild}!: Sequelize.HasOneCreateAssociationMixin<${rel.childModel}>;\n`;
645645
needed[rel.childTable].add(rel.childModel);
646646
needed[rel.childTable].add(`${rel.childModel}Id`);
647647
needed[rel.childTable].add(`${rel.childModel}CreationAttributes`);

0 commit comments

Comments
 (0)