acorn: Add getLineInfo() function type defintion

This commit adds the `getLineInfo()` function type definition for
[acorn](https://github.com/marijnh/acorn).

Below is the link to the exported function for reference:
https://github.com/marijnh/acorn/blob/f91990989104eb1558a1dc42364415403874153c/src/locutil.js#L31
This commit is contained in:
Eric N. Vander Weele
2015-10-11 09:39:41 -04:00
parent 3fc1377ce2
commit de1d22e510
+1
View File
@@ -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 {