ecmarkup
Version:
Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.
47 lines (46 loc) • 1.32 kB
TypeScript
import type { BiblioEntry, ExportedBiblio } from './Biblio';
import Spec from './Spec';
import { CancellationToken } from 'prex';
export type { Spec, BiblioEntry };
export declare class Boilerplate {
address?: string;
copyright?: string;
license?: string;
}
export type EcmarkupError = {
ruleId: string;
message: string;
file?: string;
source?: string;
line?: number;
column?: number;
nodeType?: string;
};
export interface Options {
status?: 'proposal' | 'draft' | 'standard';
version?: string;
title?: string;
shortname?: string;
description?: string;
stage?: string | null;
copyright?: boolean;
date?: Date;
location?: string;
multipage?: boolean;
extraBiblios?: ExportedBiblio[];
contributors?: string;
toc?: boolean;
oldToc?: boolean;
printable?: boolean;
markEffects?: boolean;
lintSpec?: boolean;
cssOut?: never;
jsOut?: never;
assets?: 'none' | 'inline' | 'external';
assetsDir?: string;
outfile?: string;
boilerplate?: Boilerplate;
log?: (msg: string) => void;
warn?: (err: EcmarkupError) => void;
}
export declare function build(path: string, fetch: (path: string, token: CancellationToken) => PromiseLike<string>, opts?: Options, token?: CancellationToken): Promise<Spec>;