turbopuffer / turbopuffer-typescript

Official Typescript API client library for turbopuffer.com
MIT License
8 stars 1 forks source link

Etcd/move schemas to file #10

Closed etcd closed 4 months ago

etcd commented 7 months ago

Moves the schemas (utility types) into a separate file so zod schemas for runtime type-checking can be added without cluttering up the client code.

(This is a draft PR, stacked on top of a parent that currently needs to be merged first! The diff will be smaller once the parent is merged. The GitHub UI doesn't seem to let me change the diffbase, as the parent branch lives on my fork. Before merging, first merge the parent and rebase this PR on main.)

Parent:

Child:

The whole stack (in order):

etcd commented 4 months ago

Gonna close this one due to drift from main - the changes are easy enough to redo from scratch off of main and put in a new branch.