UNPKG

@opentelemetry/plugin-react-load

Version:
10 lines 950 B
import * as React from 'react'; export type RenderFunction = () => React.ReactNode; export type ComponentDidMountFunction = (() => void) | undefined; export type ComponentDidUpdateFunction = ((prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any) => void) | undefined; export type ShouldComponentUpdateFunction = ((nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any) => boolean) | undefined; export type SetStateFunction = <K extends never>(state: any | ((prevState: Readonly<any>, props: Readonly<any>) => any | Pick<any, K> | null) | Pick<any, K> | null, callback?: (() => void) | undefined) => void; export type ForceUpdateFunction = (callback?: (() => void) | undefined) => void; export type GetSnapshotBeforeUpdateFunction = ((prevProps: Readonly<any>, prevState: Readonly<any>) => any) | undefined; export type ComponentWillUnmountFunction = (() => void) | undefined; //# sourceMappingURL=internal-types.d.ts.map