UNPKG

react-power-timers

Version:
26 lines (25 loc) 697 B
import * as React from 'react'; import { Component } from 'react'; import * as PropTypes from 'prop-types'; export interface ComponentProps { timeout: number; then?: () => any; children?: (timedout: boolean) => React.ReactNode; } export interface ComponentState { timedout: boolean; } export declare class Timeout extends Component<ComponentProps, ComponentState> { state: { timedout: boolean; }; static propTypes: { timeout: PropTypes.Validator<any>; then: PropTypes.Requireable<any>; children: PropTypes.Requireable<any>; }; timeout: number; componentDidMount(): void; componentWillUnmount(): void; render(): {}; }