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

    0.2.1 • Public • Published

    Installation

    npm install --save @types/babar

    Summary

    This package contains type definitions for babar (https://github.com/stephan83/babar#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babar.

    index.d.ts

    // Type definitions for babar 0.2
    // Project: https://github.com/stephan83/babar#readme
    // Definitions by: Matt Bachmann <https://github.com/Bachmann1234>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    type color = 'yellow' | 'cyan' | 'white' | 'magenta' | 'green' | 'red' | 'grey' | 'blue';
    
    interface Options {
        caption?: string | undefined;
        color?: color | 'ascii' | undefined;
        grid?: color | undefined;
        width?: number | undefined;
        height?: number | undefined;
        xFractions?: number | undefined;
        yFractions?: number | undefined;
        minX?: number | undefined;
        maxX?: number | undefined;
        minY?: number | undefined;
        maxY?: number | undefined;
    }
    declare function babar(points: ReadonlyArray<[number, number]>, options?: Options): string;
    
    export = babar;

    Additional Details

    • Last updated: Wed, 07 Jul 2021 21:44:44 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Matt Bachmann.

    Keywords

    none

    Install

    npm i @types/babar

    DownloadsWeekly Downloads

    613

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    4.17 kB

    Total Files

    4

    Last publish

    Collaborators

    • types