3 ms·
I sometimes see types in TS with complex generics like [1], but instead of being general like in this example, they're more specific to the type of their values
by foresterre 2y ago
I sometimes see types in TS with complex generics like [1], but instead of being general like in this example, they're more specific to the type of their values.
Couldn't find a proper example on the spot in an open source project.
[1] https://github.com/sindresorhus/type-fest/blob/main/source/get.d.ts#L25 https://github.com/sindresorhus/type-fest/blob/main/source/g...