Skip to content

Commit 1555c52

Browse files
LongTengDaomarijnh
authored andcommitted
Update acorn.d.ts
1 parent 77c20fa commit 1555c52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

acorn/dist/acorn.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ declare namespace acorn {
3636

3737
class Parser {
3838
constructor(options: Options, input: string, startPos?: number)
39-
parse(): Node
40-
static parse(input: string, options?: Options): Node
41-
static parseExpressionAt(input: string, pos: number, options?: Options): Node
42-
static tokenizer(input: string, options?: Options): {
39+
parse(this: Parser): Node
40+
static parse(this: typeof Parser, input: string, options?: Options): Node
41+
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options?: Options): Node
42+
static tokenizer(this: typeof Parser, input: string, options?: Options): {
4343
getToken(): Token
4444
[Symbol.iterator](): Iterator<Token>
4545
}
46-
static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
46+
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
4747
}
4848

4949
interface Position { line: number; column: number; offset: number }

0 commit comments

Comments
 (0)