Skip to content

refactor(typescript): flatten hydration output and remove all any types - #216

Merged
Erlend Ellefsen (erlendellefsen) merged 1 commit into
nextfrom
feat/typescript-hydration
Sep 2, 2026
Merged

refactor(typescript): flatten hydration output and remove all any types#216
Erlend Ellefsen (erlendellefsen) merged 1 commit into
nextfrom
feat/typescript-hydration

Conversation

@erlendellefsen

Copy link
Copy Markdown
Collaborator

Summary

Hydrated objects no longer carry type, so they match the generated types. hydrateResponse returns { data, pagination } for lists and { data } for singles. Cycles resolve to null instead of a fake { circular: true }. Removes the dead deep flag and the null-input overload.

Un-included relationships stay undefined: arity is not on the wire. Next PR adds a typegen resource descriptor so the client can fill null / [].

Also removes every any from src/ and contract/; filter values are unknown until the builder PR types them per attribute.

How to test

cd clients/typescript && deno task test
deno task test:contract   # needs both samples/ContractApi instances running

@erlendellefsen
Erlend Ellefsen (erlendellefsen) merged commit 15aabdf into next Sep 2, 2026
14 checks passed
@erlendellefsen
Erlend Ellefsen (erlendellefsen) deleted the feat/typescript-hydration branch September 2, 2026 11:58
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.

1 participant