tsd: Added NotExpectation interface

This commit is contained in:
Futago-za Ryuu 2018-01-02 01:50:38 +00:00
parent 42ec335d13
commit 06f1565a32

View file

@ -67,6 +67,7 @@ declare namespace generatedparser {
parts?: string[]; parts?: string[];
inverted?: boolean; inverted?: boolean;
ignoreCase?: boolean; ignoreCase?: boolean;
expected?: SyntaxExpectation;
} }
@ -106,12 +107,20 @@ declare namespace generatedparser {
} }
interface NotExpectation {
type: "not";
expected: SyntaxExpectation;
}
type SyntaxErrorConstructor type SyntaxErrorConstructor
= SyntaxError<LiteralExpectation> = SyntaxError<LiteralExpectation>
| SyntaxError<ClassExpectation> | SyntaxError<ClassExpectation>
| SyntaxError<AnyExpectation> | SyntaxError<AnyExpectation>
| SyntaxError<EndExpectation> | SyntaxError<EndExpectation>
| SyntaxError<OtherExpectation> | SyntaxError<OtherExpectation>
| SyntaxError<NotExpectation>
| SyntaxError<SyntaxExpectation>; | SyntaxError<SyntaxExpectation>;
/** /**