UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

17 lines (16 loc) 538 B
import TransformSpec from '../transformSpec.js'; import { OutputConstructorArgs } from '../types.js'; declare abstract class Output<T> extends TransformSpec { componentType: string; supported: string[]; protected defaultDestinationPath?: string; destinationPath?: string; encoding?: string; destination?: T; private errorHandler; constructor(args: OutputConstructorArgs<T>); abstract write(data: string): Promise<any>; encode(data: string): string; toString(): string; } export default Output;