UNPKG

docz

Version:

It's has never been so easy to documents your things!

9 lines (8 loc) 370 B
import { ComponentType as CT } from 'react'; import { Database, ThemeConfig, TransformFn, Entry } from './state'; export interface ThemeProps { db: Database; currentEntry: Entry; children(WrappedComponent: CT): JSX.Element; } export declare function theme(themeConfig: ThemeConfig, transform?: TransformFn): (WrappedComponent: CT) => CT<ThemeProps>;