JSPM

@types/chalk-animation

1.6.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14454
  • Score
    100M100P100Q145453F
  • License MIT

TypeScript definitions for chalk-animation

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/chalk-animation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.