Skip to content

v1.3.3

Compare
Choose a tag to compare
@gustavoguichard gustavoguichard released this 09 Nov 12:44
· 61 commits to main since this release
65e139d

What's Changed

The results of string functions should now be either deterministic (with string literals or unions of string literals) or fallback to standard types (for string interpolations or anything broader than that), eg:

type A = Slice<'foo', 0, 2> // 'fo'
type B = Slice<'foo' | 'bar', 0, 2> // 'fo' | 'ba'
type C = Slice<`foo${string}`, 0, 2> // string
type D = Slice<'foo', 0, number> // string

Kudos to @jly36963 for taking that challenge 👏

Pull requests

New Contributors

Full Changelog: v1.3.2...v1.3.3