@superset-ui/core
Version:
16 lines • 665 B
TypeScript
import { ComponentClass, WeakValidationMap } from 'react';
export type ReactifyProps = {
id?: string;
className?: string;
};
export type LifeCycleCallbacks = {
componentWillUnmount?: () => void;
};
export interface RenderFuncType<Props> {
(container: HTMLDivElement, props: Readonly<Props & ReactifyProps>): void;
displayName?: string;
defaultProps?: Partial<Props & ReactifyProps>;
propTypes?: WeakValidationMap<Props & ReactifyProps>;
}
export default function reactify<Props extends object>(renderFn: RenderFuncType<Props>, callbacks?: LifeCycleCallbacks): ComponentClass<Props & ReactifyProps>;
//# sourceMappingURL=reactify.d.ts.map