Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): fix QueryInterface#bulkInsert attribute arg type #13945

Merged
merged 9 commits into from Jan 14, 2022
10 changes: 6 additions & 4 deletions types/lib/data-types.d.ts
Expand Up @@ -366,13 +366,15 @@ export const HSTORE: AbstractDataTypeConstructor;
/**
* A JSON string column. Only available in postgres.
*/
export const JSON: AbstractDataTypeConstructor;

export interface JSON extends AbstractDataTypeConstructor {
new (): JSON;
}
/**
* A pre-processed JSON data column. Only available in postgres.
*/
export const JSONB: AbstractDataTypeConstructor;

export interface JSONB extends AbstractDataTypeConstructor {
new (): JSONB;
}
/**
* A default value of the current timestamp
*/
Expand Down
2 changes: 1 addition & 1 deletion types/lib/query-interface.d.ts
Expand Up @@ -497,7 +497,7 @@ export class QueryInterface {
tableName: TableName,
records: object[],
options?: QueryOptions,
attributes?: string[] | string
attributes?: Record<string, ModelAttributeColumnOptions>
): Promise<object | number>;

/**
Expand Down