mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Updating for the most recent version of PEG.js
the most recent version(s) of PEG.js expose location information in peg$SyntaxError that declare a start/end range
This commit is contained in:
parent
ba424f7ee3
commit
d2c5200bbf
19
pegjs/pegjs.d.ts
vendored
19
pegjs/pegjs.d.ts
vendored
@ -6,11 +6,22 @@
|
||||
declare module PEG {
|
||||
function parse(input:string):any;
|
||||
|
||||
class SyntaxError {
|
||||
line:number;
|
||||
column:number;
|
||||
offset:number;
|
||||
interface Location {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
}
|
||||
|
||||
interface LocationRange {
|
||||
start: Location,
|
||||
end: Location
|
||||
}
|
||||
|
||||
class SyntaxError {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
location: LocationRange;
|
||||
expected:any[];
|
||||
found:any;
|
||||
name:string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user