UNPKG

5.17 kBTypeScriptView Raw
1import React from 'react';
2declare const _default: {
3 new (props: import("../hoc/provideJestResult").HocProps | Readonly<import("../hoc/provideJestResult").HocProps>): {
4 state: import("../hoc/provideJestResult").HocState;
5 componentDidMount(): void;
6 componentWillUnmount(): void;
7 onAddTests: ({ kind, storyName, tests }: import("../hoc/provideJestResult").HocState) => void;
8 mounted: boolean;
9 stopListeningOnStory: () => void;
10 render(): JSX.Element;
11 context: any;
12 setState<K extends "storyName" | "kind" | "tests">(state: import("../hoc/provideJestResult").HocState | ((prevState: Readonly<import("../hoc/provideJestResult").HocState>, props: Readonly<import("../hoc/provideJestResult").HocProps>) => import("../hoc/provideJestResult").HocState | Pick<import("../hoc/provideJestResult").HocState, K>) | Pick<import("../hoc/provideJestResult").HocState, K>, callback?: () => void): void;
13 forceUpdate(callback?: () => void): void;
14 readonly props: Readonly<import("../hoc/provideJestResult").HocProps> & Readonly<{
15 children?: React.ReactNode;
16 }>;
17 refs: {
18 [key: string]: React.ReactInstance;
19 };
20 shouldComponentUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): boolean;
21 componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
22 getSnapshotBeforeUpdate?(prevProps: Readonly<import("../hoc/provideJestResult").HocProps>, prevState: Readonly<import("../hoc/provideJestResult").HocState>): any;
23 componentDidUpdate?(prevProps: Readonly<import("../hoc/provideJestResult").HocProps>, prevState: Readonly<import("../hoc/provideJestResult").HocState>, snapshot?: any): void;
24 componentWillMount?(): void;
25 UNSAFE_componentWillMount?(): void;
26 componentWillReceiveProps?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextContext: any): void;
27 UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextContext: any): void;
28 componentWillUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): void;
29 UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): void;
30 };
31 new (props: import("../hoc/provideJestResult").HocProps, context: any): {
32 state: import("../hoc/provideJestResult").HocState;
33 componentDidMount(): void;
34 componentWillUnmount(): void;
35 onAddTests: ({ kind, storyName, tests }: import("../hoc/provideJestResult").HocState) => void;
36 mounted: boolean;
37 stopListeningOnStory: () => void;
38 render(): JSX.Element;
39 context: any;
40 setState<K extends "storyName" | "kind" | "tests">(state: import("../hoc/provideJestResult").HocState | ((prevState: Readonly<import("../hoc/provideJestResult").HocState>, props: Readonly<import("../hoc/provideJestResult").HocProps>) => import("../hoc/provideJestResult").HocState | Pick<import("../hoc/provideJestResult").HocState, K>) | Pick<import("../hoc/provideJestResult").HocState, K>, callback?: () => void): void;
41 forceUpdate(callback?: () => void): void;
42 readonly props: Readonly<import("../hoc/provideJestResult").HocProps> & Readonly<{
43 children?: React.ReactNode;
44 }>;
45 refs: {
46 [key: string]: React.ReactInstance;
47 };
48 shouldComponentUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): boolean;
49 componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
50 getSnapshotBeforeUpdate?(prevProps: Readonly<import("../hoc/provideJestResult").HocProps>, prevState: Readonly<import("../hoc/provideJestResult").HocState>): any;
51 componentDidUpdate?(prevProps: Readonly<import("../hoc/provideJestResult").HocProps>, prevState: Readonly<import("../hoc/provideJestResult").HocState>, snapshot?: any): void;
52 componentWillMount?(): void;
53 UNSAFE_componentWillMount?(): void;
54 componentWillReceiveProps?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextContext: any): void;
55 UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextContext: any): void;
56 componentWillUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): void;
57 UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../hoc/provideJestResult").HocProps>, nextState: Readonly<import("../hoc/provideJestResult").HocState>, nextContext: any): void;
58 };
59 defaultProps: {
60 active: boolean;
61 };
62 contextType?: React.Context<any>;
63};
64export default _default;
65
\No newline at end of file