kittenjs-default-ui
Version:
Kittenjs default UI
53 lines (52 loc) • 1.9 kB
TypeScript
import React from 'react';
export declare function connectRoute(WrappedComponent: React.ElementType, title: string): {
new (props: Readonly<{
[x: string]: any;
location: string;
}>): {
shouldComponentUpdate(nextProps: any): boolean;
componentDidMount(): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
[x: string]: any;
location: string;
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
[x: string]: any;
location: string;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
};
new (props: {
[x: string]: any;
location: string;
}, context?: any): {
shouldComponentUpdate(nextProps: any): boolean;
componentDidMount(): void;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
[x: string]: any;
location: string;
}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
[x: string]: any;
location: string;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
};
contextType?: React.Context<any> | undefined;
};