4 ms·
These helpers just return existing information about an object, they don't wrap the object passed in. The generic gets inferred from the argument. It's not poss
by bastawhiz 3y ago
These helpers just return existing information about an object, they don't wrap the object passed in. The generic gets inferred from the argument. It's not possible to pass in an object where 'keyof T' is anything other than string, number, and/or literal strings or numbers.