mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #6247 from ericvw/acorn_updates
acorn: Add `getLineInfo()` function type defintion
This commit is contained in:
Vendored
+1
@@ -9,6 +9,7 @@ declare module acorn {
|
||||
var version: string;
|
||||
function parse(input: string, options?: Options): ESTree.Program;
|
||||
function parseExpressionAt(input: string, pos: number, options?: Options): ESTree.Expression;
|
||||
function getLineInfo(input: string, offset: number): ESTree.Position;
|
||||
var defaultOptions: Options;
|
||||
|
||||
interface TokenType {
|
||||
|
||||
Reference in New Issue
Block a user