UNPKG

@hpcc-js/observablehq-compiler

Version:
19 lines (18 loc) 712 B
import { ohq } from "./observable-shim.ts"; import { ParsedImportCell, ParsedVariable } from "./cst.ts"; export declare class Writer { protected _files: ohq.File[]; protected _imports: string[]; protected _functions: string[]; protected _defines: string[]; protected _defineUid: number; protected _functionUid: number; constructor(); toString(): string; files(files: ohq.File[]): void; import(url: string): void; importDefine(imp: Partial<ParsedImportCell>): void; function(variable: Partial<ParsedVariable>): string; define(variable: Partial<ParsedVariable>, observable?: boolean, inlineFunc?: boolean, funcId?: string): void; error(msg: string): void; }