export const getKeyValue = < T , K extends keyof T > ( obj , key ) : T [ K ] => obj [ key ] ; export const setKeyValue = < T , K extends keyof T > ( obj , key , value ) : T [ K ] => ( obj [ key ] = value ) ;