UNPKG

309 BTypeScriptView Raw
1export declare const mapDefaultProps: <P extends {}, K_1 extends Exclude<{ [K in import("tsfn").TKeyOf<P>]: P extends Record<K, P[K]> ? never : K; }[import("tsfn").TKeyOf<P>], undefined>>(defaultProps: { [k in K_1]: Exclude<P[k], undefined>; }) => (props: P) => P & { [k in K_1]: Exclude<P[k], undefined>; };