UNPKG

660 BTypeScriptView Raw
1import ts from "typescript/lib/tsserverlibrary";
2interface Comment extends ts.CommentRange {
3 text: string;
4}
5export declare type Position = {
6 line: number;
7 character: number;
8};
9export declare type Range = {
10 start: Position;
11 end: Position;
12};
13export declare type Hint = {
14 text: string;
15 range: Range;
16 contentRange: Range;
17};
18export declare type ImportModule = {
19 moduleName: string;
20 hint?: Hint;
21 location: Range;
22 start: number;
23 length: number;
24 leadingComments?: Comment[];
25 trailingComments?: Comment[];
26};
27export declare function getImportModules(sourceFile: ts.SourceFile): ImportModule[];
28export {};