@types/chalk-animation
TypeScript icon, indicating that this package has built-in type declarations

1.6.3 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chalk-animation

Weekly Downloads

2,441

Version

1.6.3

License

MIT

Unpacked Size

3.63 kB

Total Files

5

Last publish

Collaborators

  • types