UNPKG

@stencila/jesta

Version:

Stencila plugin for executable documents using JavaScript

33 lines (32 loc) 939 B
import { MethodSchema } from './manifest'; export declare const schema: MethodSchema; /** * Write content to a URL. * * @param content The content to write * @param output The URL to write to * @returns The URL that was written to (including the `content` for `file://` URLs) */ export declare function write(content: string, output: string): Promise<string>; export declare namespace write { var schema: MethodSchema; } /** * Write content to a string URL * * @param content The content to write */ export declare function writeString(content: string): string; /** * Write content to standard output * * @param content The content to write */ export declare function writeStdio(content: string): void; /** * Write content to the local file system * * @param content The content to write * @param path The path of the file to write */ export declare function writeFile(content: string, path: string): Promise<void>;