UNPKG

@bokeh/bokehjs

Version:

Interactive, novel data visualization

25 lines 865 B
import type { PlainObject } from "../types"; export declare const pretty: unique symbol; export interface Printable { [pretty](printer: Printer): string; } export type PrinterOptions = { precision?: number; }; export declare class Printer { readonly precision?: number; protected readonly visited: Set<object>; constructor(options?: PrinterOptions); to_string(obj: unknown): string; token(val: string): string; boolean(val: boolean): string; number(val: number): string; string(val: string): string; symbol(val: symbol): string; array(obj: Iterable<unknown>): string; iterable(obj: Iterable<unknown>): string; object(obj: PlainObject): string; array_buffer(obj: ArrayBuffer): string; } export declare function to_string(obj: unknown, options?: PrinterOptions): string; //# sourceMappingURL=pretty.d.ts.map