Zipper-Inc / zipper-functions

The code for zipper.dev and zipper.run. Write and run typescript functions in your browser without having to write any auth, FE, API code.
https://zipper.dev
MIT License
6 stars 2 forks source link

Support union and literal types #748

Closed miguel-nascimento closed 9 months ago

miguel-nascimento commented 9 months ago

This PR adds proper support for literal type

type Input = { kind: "get-config" }
type Input = { digit: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }`

union type

type Input = { kind: "get-config" | "generate-stuff" }

array of union types

type Input = { scopes: 'view:page' | 'edit:page' | 'create:page' } 
vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
zipper-run ✅ Ready (Inspect) Visit Preview Jan 30, 2024 11:56pm