1.6.3 • Published 6 months ago
@types/chalk-animation v1.6.3
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
// Type definitions for chalk-animation 1.6
// Project: https://github.com/bokub/chalk-animation
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Wed, 18 Aug 2021 16:01:22 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by BendingBender.