refun
Version:
A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:
1 lines • 507 B
Source Map (JSON)
{"version":3,"sources":["map-with-props.ts"],"names":["mapWithProps","getFn","props"],"mappings":"AAEA,OAAO,IAAMA,YAAY,GAAG,SAAfA,YAAe,CAA6BC,KAA7B;AAAA,SAAwD,UAACC,KAAD,EAA6B;AAC/G,6BACKA,KADL,EAEKD,KAAK,CAACC,KAAD,CAFV;AAID,GAL2B;AAAA,CAArB","sourcesContent":["import type { TExtend } from 'tsfn'\n\nexport const mapWithProps = <P extends {}, R extends {}>(getFn: (props: P) => R) => (props: P): TExtend<P, R> => {\n return {\n ...props,\n ...getFn(props),\n }\n}\n\n"],"file":"map-with-props.js"}