Skip to content

Commit 4d5fdc1

Browse files
authored
Expose the PostgresError type for TypeScript (porsager#99)
1 parent 749684b commit 4d5fdc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

types/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ type UnwrapPromiseArray<T> = T extends any[] ? {
9393
[k in keyof T]: T[k] extends Promise<infer R> ? R : T[k]
9494
} : T;
9595

96+
type PostgresErrorType = PostgresError
97+
9698
declare namespace postgres {
99+
type PostgresError = PostgresErrorType
97100

98101
/**
99102
* Convert a string to Pascal case.

0 commit comments

Comments
 (0)