From cd05e6319000d527215eee04deda4118f8beef3a Mon Sep 17 00:00:00 2001 From: barbala4o1 Date: Thu, 14 Sep 2017 15:30:22 +0300 Subject: [PATCH] issue 127 no sourceKey param in hasManyOptions interface --- lib/associations/base.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/associations/base.d.ts b/lib/associations/base.d.ts index da91ef3..93b5d0c 100644 --- a/lib/associations/base.d.ts +++ b/lib/associations/base.d.ts @@ -59,6 +59,11 @@ export interface AssociationOptions { */ hooks?: boolean; + /** + * The name of the foreign key in the source table + */ + sourceKey?: string | ForeignKeyOptions; + /** * The alias of this model, in singular form. See also the `name` option passed to `sequelize.define`. If * you create multiple associations between the same tables, you should provide an alias to be able to @@ -68,6 +73,7 @@ export interface AssociationOptions { */ as?: string | { singular: string, plural: string }; + /** * The name of the foreign key in the target table or an object representing the type definition for the * foreign column (see `Sequelize.define` for syntax). When using an object, you can add a `name` property