StringSlice<S, Start, End>
returns incorrect type when S is non-literal string
#1035
Labels
bug
Something isn't working
Bug description
type-fest/source/string-slice.d.ts
Lines 29 to 37 in cfb5947
Line 34 should be modified to replace
string[]
withstring
.Repro
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3gZRlYA7Ac0wBtgBjFAXzgDMoIQ4ByJVAWhpQGcYmBuALAAoYazQlyaALxxsuQhIoAeHvIIAaOAAZNARgB8goQEgA9KbgA9APzCzF1fgJxgXOCgAeqMjBQATTTwIeEdCAG0AXWEgA
The text was updated successfully, but these errors were encountered: