We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ffc3c4 commit 36a53f6Copy full SHA for 36a53f6
1 file changed
types/index.d.ts
@@ -715,7 +715,20 @@ declare namespace postgres {
715
prepare?: boolean | undefined;
716
}
717
718
- interface TransactionSql<TTypes extends Record<string, unknown> = {}> extends Sql<TTypes> {
+ interface TransactionSql<TTypes extends Record<string, unknown> = {}> extends Omit<Sql<TTypes>,
719
+ 'parameters' |
720
+ 'largeObject' |
721
+ 'subscribe' |
722
+ 'CLOSE' |
723
+ 'END' |
724
+ 'PostgresError' |
725
+ 'options' |
726
+ 'reserve' |
727
+ 'listen' |
728
+ 'begin' |
729
+ 'close' |
730
+ 'end'
731
+ > {
732
savepoint<T>(cb: (sql: TransactionSql<TTypes>) => T | Promise<T>): Promise<UnwrapPromiseArray<T>>;
733
savepoint<T>(name: string, cb: (sql: TransactionSql<TTypes>) => T | Promise<T>): Promise<UnwrapPromiseArray<T>>;
734
0 commit comments