Skip to content

Commit

Permalink
fix(types): add instance member declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
joe223 committed Nov 19, 2021
1 parent c85d533 commit 376af21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/lib/sequelize.d.ts
Expand Up @@ -426,6 +426,7 @@ export class Sequelize extends Hooks {
* @param args All further arguments will be passed as arguments to the function
*/
public static fn: typeof fn;
public fn: typeof fn;

/**
* Creates a object representing a column in the DB. This is often useful in conjunction with
Expand All @@ -434,6 +435,7 @@ export class Sequelize extends Hooks {
* @param col The name of the column
*/
public static col: typeof col;
public col: typeof col;

/**
* Creates a object representing a call to the cast function.
Expand All @@ -442,27 +444,31 @@ export class Sequelize extends Hooks {
* @param type The type to cast it to
*/
public static cast: typeof cast;
public cast: typeof cast;

/**
* Creates a object representing a literal, i.e. something that will not be escaped.
*
* @param val
*/
public static literal: typeof literal;
public literal: typeof literal;

/**
* An AND query
*
* @param args Each argument will be joined by AND
*/
public static and: typeof and;
public and: typeof and;

/**
* An OR query
*
* @param args Each argument will be joined by OR
*/
public static or: typeof or;
public or: typeof or;

/**
* Creates an object representing nested where conditions for postgres's json data-type.
Expand All @@ -473,6 +479,7 @@ export class Sequelize extends Hooks {
* '<value>'".
*/
public static json: typeof json;
public json: typeof json;

/**
* A way of specifying attr = condition.
Expand All @@ -493,6 +500,7 @@ export class Sequelize extends Hooks {
* etc.)
*/
public static where: typeof where;
public where: typeof where;

/**
* A hook that is run before validation
Expand Down

0 comments on commit 376af21

Please sign in to comment.