mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08: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:
f919909891/src/locutil.js (L31)
This commit is contained in:
1
acorn/acorn.d.ts
vendored
1
acorn/acorn.d.ts
vendored
@@ -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