docutils-ts
Version:
Port of the Python Docutils library to TypeScript
18 lines (17 loc) • 622 B
TypeScript
import TransformSpec from './transformSpec.js';
import { TransformType } from './types.js';
/**
* Base class for docutils components.
* Extends TransformSpec, which itself extends SettingsSpec. Thus all
* docutils components inherit numerous properties and "capabilities"
* from this inheritance chain. All should probably be combined into
* a single class since nothing is gained from having the inheritance
* hierarchy.
*/
declare class Component extends TransformSpec {
supported: string[];
componentType: string;
toString(): string;
getTransforms(): TransformType[];
}
export default Component;