UNPKG

@markuplint/ml-spec

Version:

Types and schema that specs of the Markup languages for markuplint

14 lines (13 loc) 509 B
import type { ElementSpec, ExtendedSpec, MLMLSpec } from '../types/index.js'; /** * Merging HTML-spec schema and extended spec schemas * * Ex: `@markuplint/html-spec` + `{ specs: { "\\.vue$": "@markuplint/vue-spec" } }` in configure files. * * @param schemas `MLDocument.schemas` */ export declare function schemaToSpec(schemas: readonly [MLMLSpec, ...ExtendedSpec[]]): { cites: import("../types/index.js").Cites; def: import("../types/index.js").SpecDefs; specs: readonly ElementSpec[]; };