mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
add pegjs.d.ts
This commit is contained in:
1 parent
1f368c4187
commit
e4cafe56f0
3 files changed
+25
No files matched your search
@@ -0,0 +1,5 @@
|
||||
/// <reference path="./pegjs.d.ts" />
|
||||
|
||||
var input: string;
|
||||
var result = PEG.parse(input);
|
||||
console.log(result);
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// Type definitions for PEG.js
|
||||
// Project: http://pegjs.majda.cz/
|
||||
// Definitions by: vvakame <https://github.com/vvakame>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module PEG {
|
||||
function parse(input:string):any;
|
||||
|
||||
class SyntaxError {
|
||||
line:number;
|
||||
column:number;
|
||||
offset:number;
|
||||
|
||||
expected:any[];
|
||||
found:any;
|
||||
name:string;
|
||||
message:string;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user