diff --git a/types/node-pg-migrate/index.d.ts b/types/node-pg-migrate/index.d.ts index 40f09875fa..07c20ab3fa 100644 --- a/types/node-pg-migrate/index.d.ts +++ b/types/node-pg-migrate/index.d.ts @@ -66,6 +66,8 @@ export interface MigrationBuilder { sql(sql: string, args?: object): void; func(sql: string): PgLiteral; + + noTransaction(): void; } export default function(options: any): Promise; diff --git a/types/node-pg-migrate/node-pg-migrate-tests.ts b/types/node-pg-migrate/node-pg-migrate-tests.ts index aacb6b325c..c3f1edf9b8 100644 --- a/types/node-pg-migrate/node-pg-migrate-tests.ts +++ b/types/node-pg-migrate/node-pg-migrate-tests.ts @@ -58,3 +58,5 @@ pgm.addColumn({ schema: 'schema', name: 'table' }, { onUpdate: '', } }); + +pgm.noTransaction();