@choerodon/master
Version:
A package of Master for Choerodon platform.
93 lines (92 loc) • 3.21 kB
TypeScript
import React from 'react';
declare enum BrowserType {
IE = "IE",
Opera = "Opera",
Edge = "Edge",
FF = "FF",
Safari = "Safari",
Chrome = "Chrome"
}
interface StateProps {
browser: keyof typeof BrowserType | undefined;
}
declare const _default: (Children: React.FC) => (stylesProps: {
[x: number]: Function;
toString: Function;
charAt: Function;
charCodeAt: Function;
concat: Function;
indexOf: Function;
lastIndexOf: Function;
localeCompare: Function;
match: Function;
replace: Function;
search: Function;
slice: Function;
split: Function;
substring: Function;
toLowerCase: Function;
toLocaleLowerCase: Function;
toUpperCase: Function;
toLocaleUpperCase: Function;
trim: Function;
readonly length: Function;
substr: Function;
valueOf: Function;
codePointAt: Function;
includes: Function;
endsWith: Function;
normalize: Function;
repeat: Function;
startsWith: Function;
anchor: Function;
big: Function;
blink: Function;
bold: Function;
fixed: Function;
fontcolor: Function;
fontsize: Function;
italics: Function;
link: Function;
small: Function;
strike: Function;
sub: Function;
sup: Function;
padStart: Function;
padEnd: Function;
trimEnd: Function;
trimStart: Function;
trimLeft: Function;
trimRight: Function;
matchAll: Function;
at: Function;
}) => {
new (props: any): {
componentDidMount(): void;
myBrowser(): "Chrome" | "IE" | "Opera" | "Edge" | "FF" | "Safari" | undefined;
render(): JSX.Element;
context: any;
setState<K extends "browser">(state: StateProps | ((prevState: Readonly<StateProps>, props: Readonly<any>) => StateProps | Pick<StateProps, K> | null) | Pick<StateProps, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<any> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<StateProps>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<StateProps>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<StateProps>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<StateProps>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<StateProps>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<StateProps>, nextContext: any): void;
};
contextType?: React.Context<any> | undefined;
};
export default _default;