1.5.8 • Published 6 months ago

@types/asciichart v1.5.8

Weekly downloads
482
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/asciichart

Summary

This package contains type definitions for asciichart (https://github.com/kroitor/asciichart).

Details

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

index.d.ts

// Type definitions for asciichart 1.5
// Project: https://github.com/kroitor/asciichart
// Definitions by: pokutuna <https://github.com/pokutuna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export as namespace asciichart;

export const black: string;
export const red: string;
export const green: string;
export const yellow: string;
export const blue: string;
export const magenta: string;
export const cyan: string;
export const lightgray: string;
declare const _default: string; // default is a reserved word
export { _default as default };
export const darkgray: string;
export const lightred: string;
export const lightgreen: string;
export const lightyellow: string;
export const lightblue: string;
export const lightmagenta: string;
export const lightcyan: string;
export const white: string;
export const reset: string;

/**
 * Color is a control sequence for coloring.
 * undefined is equivalent to the default color.
 */
export type Color = string | undefined;

export function colored(char: string, color: Color): string;

export interface PlotConfig {
    offset?: number | undefined;
    padding?: string | undefined;
    height?: number | undefined;
    colors?: Color[] | undefined;
    min?: number | undefined;
    max?: number | undefined;
    symbols?: [string, string, string, string, string, string, string, string, string, string] | undefined;
    format?: ((x: number, i: number) => string) | undefined;
}

export function plot(series: ReadonlyArray<number | number[]>, cfg?: PlotConfig): string;

Additional Details

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

Credits

These definitions were written by pokutuna.

1.5.8

6 months ago

1.5.7

7 months ago

1.5.6

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

5 years ago