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

Fail on error, support array operations, CompositeTypes, quoted identifiers and single-member enums #33

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

TomasHubelbauer
Copy link
Sponsor Contributor

This makes the library capable of handling the TypeScript types as generated by recent versions of the Supabase CLI as well as makes it able to cover some more exotic scenarios like the aforementioned single-member enums and quoted identifiers.

…ifiers and single-member enums

This makes the library capable of handling the TypeScript types as generated by recent versions of the Supabase CLI as well as makes it able to cover some more exotic scenarios like the aforementioned single-member enums and quoted identifiers.
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to support the bun run temp script without having to remember to not commit the sandbox stuff.

sourceText: parsedTypes,
...opts,
});

if (errors.length > 0) {
throw new Error(errors.join('\n'));
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you find this behavior undesirable, but I think it is reasonable to fail fast and save the users confusion down the line in case they find some types are missing.

@TomasHubelbauer
Copy link
Sponsor Contributor Author

Fixes #29.

@psteinroe psteinroe merged commit 2426e75 into psteinroe:main Jun 26, 2024
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