forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
donna.d.ts
35 lines (29 loc) · 811 Bytes
/
donna.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Type definitions for donna
// Project: https://github.com/atom/donna
// Definitions by: vvakame <https://github.com/vvakame/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "donna" {
function generateMetadata(modules: string[]): DonnaTypes.Metadata;
}
declare module DonnaTypes {
interface Metadata {
files: { [filePath: string]: File; };
}
interface File {
objects: { [line: number]: Line; };
exports: any;
}
interface Line {
[row: number]: Object;
}
interface Object {
type: string;
name: string;
bindingType: string;
paramNames?: string[];
classProperties?: any[];
prototypeProperties?: number[][];
doc?: string;
range: number[][];
}
}