source: imaps-frontend/node_modules/react-universal-interface/lib/wrapInStatefulComponent.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 2.9 KB
Line 
1import * as React from 'react';
2declare const wrapInStatefulComponent: (Comp: any) => {
3 new (props: Readonly<any>): {
4 render(): any;
5 context: any;
6 setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
7 forceUpdate(callback?: () => void): void;
8 readonly props: Readonly<any> & Readonly<{
9 children?: React.ReactNode;
10 }>;
11 state: Readonly<any>;
12 refs: {
13 [key: string]: React.ReactInstance;
14 };
15 componentDidMount?(): void;
16 shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
17 componentWillUnmount?(): void;
18 componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
19 getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
20 componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
21 componentWillMount?(): void;
22 UNSAFE_componentWillMount?(): void;
23 componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
24 UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
25 componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
26 UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
27 };
28 new (props: any, context?: any): {
29 render(): any;
30 context: any;
31 setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
32 forceUpdate(callback?: () => void): void;
33 readonly props: Readonly<any> & Readonly<{
34 children?: React.ReactNode;
35 }>;
36 state: Readonly<any>;
37 refs: {
38 [key: string]: React.ReactInstance;
39 };
40 componentDidMount?(): void;
41 shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
42 componentWillUnmount?(): void;
43 componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
44 getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
45 componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
46 componentWillMount?(): void;
47 UNSAFE_componentWillMount?(): void;
48 componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
49 UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
50 componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
51 UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
52 };
53 contextType?: React.Context<any>;
54};
55export default wrapInStatefulComponent;
Note: See TracBrowser for help on using the repository browser.