tsd: Added NotExpectation interface
This commit is contained in:
parent
42ec335d13
commit
06f1565a32
9
lib/typings/generated-parser.d.ts
vendored
9
lib/typings/generated-parser.d.ts
vendored
|
@ -67,6 +67,7 @@ declare namespace generatedparser {
|
|||
parts?: string[];
|
||||
inverted?: boolean;
|
||||
ignoreCase?: boolean;
|
||||
expected?: SyntaxExpectation;
|
||||
|
||||
}
|
||||
|
||||
|
@ -106,12 +107,20 @@ declare namespace generatedparser {
|
|||
|
||||
}
|
||||
|
||||
interface NotExpectation {
|
||||
|
||||
type: "not";
|
||||
expected: SyntaxExpectation;
|
||||
|
||||
}
|
||||
|
||||
type SyntaxErrorConstructor
|
||||
= SyntaxError<LiteralExpectation>
|
||||
| SyntaxError<ClassExpectation>
|
||||
| SyntaxError<AnyExpectation>
|
||||
| SyntaxError<EndExpectation>
|
||||
| SyntaxError<OtherExpectation>
|
||||
| SyntaxError<NotExpectation>
|
||||
| SyntaxError<SyntaxExpectation>;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue