salve-annos
Version:
A fork with support for documentation of Salve, a Javascript library which implements a validator able to validate an XML document on the basis of a subset of RelaxNG.
16 lines (15 loc) • 662 B
TypeScript
/**
* This module contains constants common to both reading and writing schemas in
* the JSON format internal to salve.
*
* @author Louis-Dominique Dubeau
* @license MPL 2.0
* @copyright Mangalam Research Center for Buddhist Languages
*/
import { AnyName, BasePattern, Name, NameChoice, NsName } from "../patterns";
export type NamePattern = Name | NameChoice | NsName | AnyName;
export type PatternCtor = new (...args: any[]) => (BasePattern | NamePattern);
export type Ctors = PatternCtor | typeof Array;
export declare const codeToConstructor: Ctors[];
export declare const nameToCode: Record<string, number>;
export declare const OPTION_NO_PATHS = 1;