fannypack-v5
Version:
An accessible, composable, and friendly React UI Kit
10 lines (9 loc) • 310 B
TypeScript
export declare function createHook<P>(useHook: (props: Partial<P>, options: {
themeKey: string;
themeKeyOverride: string;
}) => Partial<P>, config?: {
defaultProps?: Partial<P>;
themeKey?: string;
}): (props: Partial<P>, { themeKey: themeKeyOverride }?: {
themeKey?: any;
}) => Partial<P>;