v1.3.3
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
- chore: Move casing functions to casing folder and reorganize exports by @gustavoguichard in #95
- chore: Update README with Michigan TS interview by @gustavoguichard in #102
- docs: add banner to README by @agreea in #104
- fix: handle non-literal strings by @jly36963 in #105
- fix: better literal differentiation by @jly36963 in #107
New Contributors
Full Changelog: v1.3.2...v1.3.3