mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
34 lines
793 B
TypeScript
34 lines
793 B
TypeScript
// Type definitions for donna
|
|
// Project: https://github.com/atom/donna
|
|
// Definitions by: vvakame <https://github.com/vvakame>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function generateMetadata(modules: string[]): DonnaTypes.Metadata;
|
|
|
|
declare namespace 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[][];
|
|
|
|
}
|
|
}
|