Skip to content

Commit

Permalink
Update acorn.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LongTengDao authored and marijnh committed Aug 7, 2019
1 parent 77c20fa commit 1555c52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions acorn/dist/acorn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ declare namespace acorn {

class Parser {
constructor(options: Options, input: string, startPos?: number)
parse(): Node
static parse(input: string, options?: Options): Node
static parseExpressionAt(input: string, pos: number, options?: Options): Node
static tokenizer(input: string, options?: Options): {
parse(this: Parser): Node
static parse(this: typeof Parser, input: string, options?: Options): Node
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options?: Options): Node
static tokenizer(this: typeof Parser, input: string, options?: Options): {
getToken(): Token
[Symbol.iterator](): Iterator<Token>
}
static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
}

interface Position { line: number; column: number; offset: number }
Expand Down

0 comments on commit 1555c52

Please sign in to comment.