-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathfoo-mx.d.ts
More file actions
43 lines (38 loc) · 1.01 KB
/
foo-mx.d.ts
File metadata and controls
43 lines (38 loc) · 1.01 KB
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
36
37
38
39
40
41
42
43
declare module 'foo-mx' {
import exp = require('foo-mx/lib/exported-sub');
import mod1 = require('foo-mx/index//external1');
import nodeModule = require('foo-mx/index//node_module');
export import Foo = require('foo-mx/Foo');
export function run(foo?: Foo): Foo;
export function flep(): exp.ExternalContainer;
export function bar(): mod1.SomeType;
export function baz(): nodeModule.SomeType;
}
declare module 'foo-mx/index//external1' {
export class SomeType {
foo(): void;
}
}
declare module 'foo-mx/index//external2' {
export class AnotherType {
foo(): void;
}
}
declare module 'foo-mx/index//node_module' {
export class SomeType {
foo(): void;
}
}
declare module 'foo-mx/Foo' {
class Foo {
foo: string;
constructor(secret?: string);
/**
* Bars the foo.
*/
barFoo(): void;
/** Foos the baz. */
fooBaz(): void;
}
export = Foo;
}