UNPKG

@types/chalk-animation

Version:
41 lines (33 loc) 1.14 kB
# Installation > `npm install --save @types/chalk-animation` # Summary This package contains type definitions for chalk-animation (https://github.com/bokub/chalk-animation). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chalk-animation. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chalk-animation/index.d.ts) ````ts export const rainbow: AnimationFn; export const pulse: AnimationFn; export const glitch: AnimationFn; export const radar: AnimationFn; export const neon: AnimationFn; export const karaoke: AnimationFn; export type AnimationFn = (text: string, speed?: number) => Animation; export interface Animation { text: string[]; lines: number; stopped: boolean; init: boolean; f: number; start(): void; stop(): void; replace(text: string): void; render(): void; frame(): string; } ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: none # Credits These definitions were written by [BendingBender](https://github.com/BendingBender).