Skip to content

Commit a142d73

Browse files
chore(ts-template): correct "instanciate" to "instantiate" misspelling (#965)
Fix spelling mistake in TypeScript generation template that was propagating to all generated database type files.
1 parent c626519 commit a142d73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/templates/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const apply = async ({
3535
.forEach((c) => columnsByTableId[c.table_id].push(c))
3636

3737
const internal_supabase_schema = postgrestVersion
38-
? `// Allows to automatically instanciate createClient with right options
38+
? `// Allows to automatically instantiate createClient with right options
3939
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
4040
__InternalSupabase: {
4141
PostgrestVersion: '${postgrestVersion}'

test/server/typegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ test('typegen: typescript w/ postgrestVersion', async () => {
12991299
| Json[]
13001300
13011301
export type Database = {
1302-
// Allows to automatically instanciate createClient with right options
1302+
// Allows to automatically instantiate createClient with right options
13031303
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
13041304
__InternalSupabase: {
13051305
PostgrestVersion: "13"

0 commit comments

Comments
 (0)