UNPKG

flexifyparams

Version:

a helper utility for getting the parameter values if they're supposed to be be functions or other type of values

6 lines 313 B
type ReturnValue<PARAM extends object> = { [KEY in keyof PARAM]: PARAM[KEY] extends (...x: any) => infer RETURN_VAL ? RETURN_VAL : PARAM[KEY]; }; export default function flexifyParams<PARAM extends object>(param: PARAM, args?: any[]): ReturnValue<PARAM>; export {}; //# sourceMappingURL=flexifyParams.d.ts.map