This is a very small PR, the JsDoc type is wrong, if the obj type is <T> then type of keys should be the keyof T.
I've updated the keys parameter to be of type (keyof T)[], which means it's an array of keys from the T object. This should allow to pass in an array of strings that match the keys in the values object.
This is a very small PR, the JsDoc type is wrong, if the obj type is
<T>
then type of keys should be thekeyof T
.I've updated the keys parameter to be of type
(keyof T)[]
, which means it's an array of keys from the T object. This should allow to pass in an array of strings that match the keys in the values object.