ecmarkup
Version:
Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.
21 lines (20 loc) • 604 B
TypeScript
import type { Type } from './Biblio';
export declare class ParseError extends Error {
offset: number;
constructor(message: string, offset: number);
}
export declare class TypeParser {
offset: number;
allowParensInOpaque: boolean;
input: string;
remainder: string;
constructor(input: string);
static parse(input: string): Type;
parse(): Type;
private parseTypePossiblyWithUnmarkedUnion;
private parseType;
eatWs(): void;
eat(regexp: RegExp): RegExpMatchArray | null;
eatUntil(regexp: RegExp): string;
expect(regexp: RegExp): RegExpMatchArray;
}