Skip to content

Advanced TypeScript types

Compare
Choose a tag to compare
@eandre eandre released this 31 May 13:47
· 90 commits to main since this release

We're excited to announce Encore v1.38, which brings a huge set of improvements to Encore's static analysis of TypeScript type information! As always, update with encore version update.

Advanced TypeScript types

You can now define use advanced TypeScript features like generic types, union types, conditional types, mapped types, literal types, and much more, in your API endpoints. This also include utility types you've come to love, like Record<K, V>, Partial<T>, Required<T>, Pick<T, K>, Omit<T, K>, and more.

We're going to keep expanding on Encore's TypeScript type system support over the coming releases, so let us know on Discord if there's additional type system functionality you'd like to see.