Commit 16a155b
committed
fix: use Promise<Client> type for connectPromise instead of .then(() => {})
Updated the type annotation to match @types/pg@8.18.0 where Client.connect()
now correctly returns Promise<Client> (was incorrectly typed as Promise<void>
in @types/pg@8.16.0). No behavioral change — the runtime always returned
Promise<Client>.1 parent aa09f9e commit 16a155b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments