3 ms·
It's just "T extends string", with a default value of `string` if you don't supply T.
by Smaug123 4y ago
It's just "T extends string", with a default value of `string` if you don't supply T.
- deleted 4y ago[deleted]
- sedro 4y agoAnd the purpose of "T extends string" is to carry the value of a string literal. For example, there's the string value "foo", but there's also a type "foo" which extends string and has only the one possible value.