UNPKG

@ovine/core

Version:

Build flexible admin system with json.

20 lines (19 loc) 638 B
import { FunctionComponent } from 'react'; import { DefaultTheme } from 'styled-components'; import * as Types from "../utils/types"; declare type Themes = { [theme: string]: Types.DeepPartial<DefaultTheme>; }; declare type WithAppTheme = <P, C = FunctionComponent<P & { theme: DefaultTheme; }>>(component: C) => FunctionComponent<P>; export declare const withAppTheme: WithAppTheme; export declare class AppTheme { private themes; constructor(appThemes?: Themes); getName(): string; initThemes(appThemes: Themes): void; getTheme(): DefaultTheme; getAllThemes(): Types.ObjectOf<DefaultTheme>; } export {};