mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
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:
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