Skip to content

Commit e3952ef

Browse files
committed
1. Fix different typescript errors
2. Running the tests failed with an error message asking to install sqlite3 manually, so I did and it worked. When I installed manually it installed version 3.1.9, since it worked I kept the upgraded version.
1 parent c6b1e56 commit e3952ef

File tree

6 files changed

+159
-299
lines changed

6 files changed

+159
-299
lines changed

lib/annotations/association/BelongsToMany.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function BelongsToMany(relatedClassGetter: ModelClassGetter,
2020
through = throughOrOptions;
2121
} else {
2222
through = (throughOrOptions as IAssociationOptionsBelongsToMany).through;
23-
options = throughOrOptions;
23+
options = throughOrOptions as IAssociationOptionsBelongsToMany;
2424
}
2525
return (target: any, propertyName: string) => {
2626
addAssociation(

lib/interfaces/IBaseIncludeOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface IBaseIncludeOptions {
1515
* Where clauses to apply to the child models. Note that this converts the eager load to an inner join,
1616
* unless you explicitly set `required: false`
1717
*/
18-
where?: WhereOptions;
18+
where?: WhereOptions<any>;
1919

2020
/**
2121
* A list of attributes to select from the child model

lib/interfaces/IFindOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface IFindOptions extends LoggingOptions, SearchPathOptions {
1111
/**
1212
* A hash of attributes to describe your search. See above for examples.
1313
*/
14-
where?: WhereOptions | Array<col | and | or | string> | col | and | or | string;
14+
where?: WhereOptions<any> | Array<col | and | or | string> | col | and | or | string;
1515

1616
/**
1717
* A list of the attributes that you want to select. To rename an attribute, you can pass an array, with
@@ -69,7 +69,7 @@ export interface IFindOptions extends LoggingOptions, SearchPathOptions {
6969
/**
7070
* having ?!?
7171
*/
72-
having?: WhereOptions;
72+
having?: WhereOptions<any>;
7373

7474
/**
7575
* Group by. It is not mentioned in sequelize's JSDoc, but mentioned in docs.

lib/interfaces/IScopeFindOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface IScopeFindOptions extends LoggingOptions, SearchPathOptions {
1111
/**
1212
* A hash of attributes to describe your search. See above for examples.
1313
*/
14-
where?: WhereOptions | Array<col | and | or | string> | col | and | or | string;
14+
where?: WhereOptions<any> | Array<col | and | or | string> | col | and | or | string;
1515

1616
/**
1717
* A list of the attributes that you want to select. To rename an attribute, you can pass an array, with
@@ -69,7 +69,7 @@ export interface IScopeFindOptions extends LoggingOptions, SearchPathOptions {
6969
/**
7070
* having ?!?
7171
*/
72-
having?: WhereOptions;
72+
having?: WhereOptions<any>;
7373

7474
/**
7575
* Group by. It is not mentioned in sequelize's JSDoc, but mentioned in docs.

0 commit comments

Comments
 (0)