UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

54 lines (53 loc) 3.03 kB
import * as React from "react"; export declare const withJsxExport: <T extends {}>(Component: React.ComponentType<T>) => { new (props: Readonly<T>): { toJsx: () => string; render(): React.ReactNode; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callBack?: () => void): void; readonly props: Readonly<React.PropsWithChildren<T>>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<T>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<T>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<T>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<T>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: T, context?: any): { toJsx: () => string; render(): React.ReactNode; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<T>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callBack?: () => void): void; readonly props: Readonly<React.PropsWithChildren<T>>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<T>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<T>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<T>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<T>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<T>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType?: React.Context<any>; };