We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ea8204 commit e954dbaCopy full SHA for e954dba
lib/index.js
@@ -33,6 +33,7 @@ function notTagged() {
33
}
34
35
Object.assign(Postgres, {
36
+ PostgresError,
37
toPascal,
38
toCamel,
39
toKebab,
types/index.d.ts
@@ -103,10 +103,10 @@ type UnwrapPromiseArray<T> = T extends any[] ? {
103
[k in keyof T]: T[k] extends Promise<infer R> ? R : T[k]
104
} : T;
105
106
-type PostgresErrorType = PostgresError
+type PostgresErrorType = typeof PostgresError
107
108
declare namespace postgres {
109
- type PostgresError = PostgresErrorType
+ export const PostgresError: PostgresErrorType;
110
111
/**
112
* Convert a string to Pascal case.
0 commit comments