UNPKG

@react-slate/core

Version:

Write interactive CLI apps with React

31 lines 756 B
/// <reference types="node" /> import React from 'react'; import { SpinnerName } from 'cli-spinners'; import { TextProps } from '..'; declare type Props = { type?: SpinnerName; interval?: number; frames?: string[]; paused?: boolean; } & Omit<TextProps, 'children'>; declare type State = { frame: string; index: number; }; export default class Spinner extends React.Component<Props, State> { state: { frame: string; index: number; }; intervalId?: NodeJS.Timeout; getAnimation(): { frames: string[]; interval: number; }; start(): void; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; } export {}; //# sourceMappingURL=Spinner.d.ts.map