mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
// Type definitions for asciichart 1.5
|
|
// Project: https://github.com/kroitor/asciichart
|
|
// Definitions by: pokutuna <https://github.com/DefinitelyTyped>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface PlotConfig {
|
|
offset?: number;
|
|
padding?: string;
|
|
height?: number;
|
|
format?: (x: number, i: number) => string;
|
|
}
|
|
|
|
export function plot(series: ReadonlyArray<number>, cfg?: PlotConfig): string;
|