Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record<PropertyKey, never> is not supported #8

Open
bukinoshita opened this issue Jan 10, 2023 · 8 comments
Open

Record<PropertyKey, never> is not supported #8

bukinoshita opened this issue Jan 10, 2023 · 8 comments

Comments

@bukinoshita
Copy link

I'm getting an error Error: Record<PropertyKey, …> are not supported when running supabase-to-zod

@psteinroe
Copy link
Owner

Hey! Thanks for reporting. Can you try v1.0.1? I guess this was introduced by the latest patch.

@ajhaupt7
Copy link

ajhaupt7 commented Apr 1, 2023

I'm getting the same issue on 1.0.4

@LordZardeck
Copy link

I am also unable to use this with the latest supabase cli. There are some functions that have this as the args type:

is_admin: {
	Args: Record<PropertyKey, never>
	Returns: boolean
}

@psteinroe
Copy link
Owner

Thanks for your interest in using this library. Can you try using an older version? I won't invest time into this approach, and instead will try to contribute a zod template to supabase meta. This will enable users to generate the zod schemas the same way they generate the typescript types, and is by far a better way of achieving this.

@mikestopcontinues
Copy link

@psteinroe Any news on the template?

@psteinroe
Copy link
Owner

@psteinroe Any news on the template?

my priorities are currently elsewhere. if you need it soon, consider contributing it yourself, or sponsor me or someone else to build it for you.

@kapitanluffy
Copy link

kapitanluffy commented Jul 5, 2023

Dropping relevant issues:

@ergodic1
Copy link

All works for me now for above.

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

No branches or pull requests

7 participants