Skip to content

Commit b59c821

Browse files
authored
chore: fix timestampz typo (#2400)
I copy/pasted this from the docs and was stumped for a while why things weren't working
1 parent 108144e commit b59c821

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/typescript-client/test/client.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe(`client`, () => {
4646
table: ``,
4747
},
4848
parser: {
49-
timestampz: (date: string) => {
49+
timestamptz: (date: string) => {
5050
return new Date(date)
5151
},
5252
},
@@ -124,7 +124,7 @@ describe(`client`, () => {
124124
table: ``,
125125
},
126126
parser: {
127-
timestampz: (date: string) => {
127+
timestamptz: (date: string) => {
128128
return new Date(date)
129129
},
130130
},

website/docs/api/clients/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const stream = new ShapeStream<CustomRow>({
298298
},
299299
parser: {
300300
// Parse timestamp columns into JavaScript Date objects
301-
timestampz: (date: string) => new Date(date)
301+
timestamptz: (date: string) => new Date(date)
302302
}
303303
})
304304

0 commit comments

Comments
 (0)