docschema
Version:
Schema declaration and validation library using JsDoc comments
18 lines (17 loc) • 444 B
TypeScript
/**
* @param {string} typeExpression
* @param {CurrentLocation} [currentLocation]
* @returns {ParsedType[]}
*/
export function parse(typeExpression: string, currentLocation?: CurrentLocation): ParsedType[];
/**
* List of From => To values.
* All From keys must be lowercase.
*
* Note: The star seems to be official "any" in JsDoc
*
* @type {Object<string, string>}
*/
export const COMMON_MISTAKE_FIXES: {
[x: string]: string;
};