packageDocumentation module typeparam typeparam typeparam export type Getter < TKey extends string > = < TValue , TObject extends { [ P in TKey ] : TValue ; } > ( o : TObject ) => TObject [ TKey ] ; param key export const getter = < K extends string > ( key ) : Getter < K > => < T , O extends { [ P in K ] : T ; } > ( o ) => o [ key ] ; export const getter2 = < K1 extends string , K2 extends string > ( k1 , k2 ) => < T , O extends { [ P in K1 ] : { [ R in K2 ] : T ; } ; } > ( o ) => o [ k1 ] [ k2 ] ; export const dot = getter ; export const dot2 = getter2 ; export const getEventCurrentTargetValue = dot2 ( "currentTarget" , "value" ) ;