import { Fn, IntersectionFn, KeepNeversFn, OmitFn, Pipe, ToSchema } from "../types/Fn"; import { Hoc } from "../types/Hoc"; interface WithOverridesFn extends Fn { return: Pipe, KeepNeversFn> ]>; } type WithOverridesHoc = >(map: Map) => Hoc<[WithOverridesFn>]>; /** * adds values to many props, they can not be override, which means the given values override others * @see {@link withOverride} {@link withFactory} {@link withDefaults} {@link withDefault} * @example * function Card({ content, icon, border }: { * content: string; * icon: "star" | "heart" | ...; * border: "none" | "dashed" | ... * }) { * return <>... * } * const StandardCard = withOverrides({icon: "star", border: "rounded"})(Card); * * * // is equivalent to * * * // and * // ❌ is a typescript error, but even though * // is equivalent to * */ export declare const withOverrides: WithOverridesHoc; export {}; //# sourceMappingURL=withOverrides.d.ts.map