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.
17 lines (16 loc) • 656 B
TypeScript
/**
* Common tools for salve.
* @author Louis-Dominique Dubeau
* @license MPL 2.0
* @copyright Mangalam Research Center for Buddhist Languages
*/
/**
* This is required to work around a problem when extending built-in classes
* like ``Error``. Some of the constructors for these classes return a value
* from the constructor, which is then picked up by the constructors generated
* by TypeScript (same with ES6 code transpiled through Babel), and this messes
* up the inheritance chain.
*
* See https://github.com/Microsoft/TypeScript/issues/12123.
*/
export declare function fixPrototype(obj: any, parent: new (...args: any[]) => any): void;