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[];
|
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>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue