Skip to content

Commit

Permalink
Expose the PostgresError type for TypeScript (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron authored Dec 13, 2020
1 parent 749684b commit 4d5fdc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ type UnwrapPromiseArray<T> = T extends any[] ? {
[k in keyof T]: T[k] extends Promise<infer R> ? R : T[k]
} : T;

type PostgresErrorType = PostgresError

declare namespace postgres {
type PostgresError = PostgresErrorType

/**
* Convert a string to Pascal case.
Expand Down

0 comments on commit 4d5fdc1

Please sign in to comment.