rmwc
Version:
A thin React wrapper for Material Design (Web) Components
18 lines (17 loc) • 691 B
TypeScript
import * as React from 'react';
export declare const storyWithState: (getState: any, Component: any) => {
new (props: any): {
componentWillUpdate(nextProps: any, nextState: any): void;
render(): any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: {}) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
props: Readonly<{
children?: React.ReactNode;
}> & Readonly<{}>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
};