Skip to content

feat: passing down Database generic type to createClient#16

Merged
tomaspozo merged 2 commits intomainfrom
feat/support-generated-types
Mar 24, 2026
Merged

feat: passing down Database generic type to createClient#16
tomaspozo merged 2 commits intomainfrom
feat/support-generated-types

Conversation

@kallebysantos
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

feature

What is the current behavior?

Currently there's no way to get Database schema types on ctx

What is the new behavior?

Accepting generics and passing down the database type to createClient

Additional context

Details
Screen.Recording.2026-03-24.at.19.22.13.mov

@kallebysantos kallebysantos force-pushed the feat/support-generated-types branch from 529fdb9 to 65f75ca Compare March 24, 2026 20:09
@tomaspozo tomaspozo self-requested a review March 24, 2026 20:32
@linear
Copy link
Copy Markdown

linear Bot commented Mar 24, 2026

FUNC-524 Generated SupabaseClient types are not passed through

Testing the new @supabase/server alpha surfaced a case where it does not appear possible to pass down the generated SupabaseClient types.

image.png

Comment thread src/core/create-admin-client.ts Outdated
@tomaspozo tomaspozo merged commit 4053f6d into main Mar 24, 2026
2 of 3 checks passed
@tomaspozo tomaspozo deleted the feat/support-generated-types branch March 24, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants