ontime-components
Version:
List of react components
27 lines (26 loc) • 807 B
TypeScript
import { PureComponent } from 'react';
import { IProps } from '../../libs/interfaces';
import { TFuncClick } from '../../libs/types';
interface ILimitProps extends IProps {
limit?: number;
data?: number[];
onChange?: Function;
}
interface ILimitDefProps {
limit: number;
data: number[];
}
interface ILimitState {
limit: number;
}
declare class Limit extends PureComponent<ILimitProps & ILimitDefProps, ILimitState> {
static defaultProps: ILimitDefProps;
static getDerivedStateFromProps(nextProps: any, prevState: any): {
limit: any;
} | null;
constructor(props: ILimitProps & ILimitDefProps);
onClick: TFuncClick;
setState(state: ILimitState): Promise<unknown>;
render(): JSX.Element;
}
export { Limit, ILimitProps, ILimitDefProps, ILimitState };