Skip to content

Conversation

avallete
Copy link
Member

@avallete avallete commented Oct 1, 2025

@avallete avallete requested review from a team as code owners October 1, 2025 13:14
@avallete avallete requested a review from soedirgo October 2, 2025 08:36
@avallete avallete merged commit 8b65b39 into feat/add-functions-setof-type-introspection-v2 Oct 7, 2025
6 checks passed
@avallete avallete deleted the fix/union-unknown-null branch October 7, 2025 19:20
avallete added a commit that referenced this pull request Oct 16, 2025
* feat(typegen): add setof function type introspection

- Introspect the setof function fields for functions
- Restore functions as unions of args + returns

* chore: update snapshots

* chore: unify sort and dedup loops

* chore: remove duplicate sort

* chore: include view in type

* fix: isOneToOne

* fix: tests

* chore: dedup typescript typegen logic

* chore: re-use generateColumn

* fix: retrieve prorows only

* chore: refactor typegen for prorows only

* fix: only get reltype in types

* chore: reuse relationTypeByIds

* chore: reduce functions changes to minimum

* chore: only single loop for types

* chore: single sort for relationships

* chore: reduce loops

* fix: relationtype setof functions generation

* chore: fix prettier

* chore: update snapshots

* chore: fix types test

* fix: test types

* fix: include materializedView types

* test: add search_todos_by_details function

* fix: add setof from * for all relation functions

* fix(typescript): union unknown null (#995)

* fix(typescript): unknown is already nullable

Fixes: supabase/cli#4234
supabase/cli#577

* fix: also exclude any from null union
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