shineout
Version:
Shein 前端组件库
32 lines (31 loc) • 1.65 kB
TypeScript
/// <reference types="react" />
declare const _default: {
new (props: unknown): {
handleUpdate: () => void;
componentWillUnmount(): void;
render(): JSX.Element;
context: any;
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<unknown> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: import("react").ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<any>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<unknown>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<unknown>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<any>, nextContext: any): void;
};
contextType?: import("react").Context<any> | undefined;
};
export default _default;