-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngsham.d.ts
97 lines (84 loc) · 1.74 KB
/
ngsham.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
declare var _: any;
declare var angular: any;
declare var NgShamFactory: any;
/**
* TODO: Describe this type more thoroughly.
*/
interface ComponentCreator {
component: Function;
bootstrap: Function;
fact: Function;
}
/**
* HACK: Please replace this with some more-or-less official spec!
*/
interface jQLiteElement {
}
/**
* HACK: Please replace this with some more-or-less official spec!
*/
interface jQueryElement {
}
/**
* A POJA that can be checked against Ng1's injector??
*/
interface Ng1InjectionParams {
}
/**
* A POJO that describes the decorations of a Typescript class, even if null.
*/
interface TypeScriptDecorationsESxObject {
// TODO: Will be quite tricky...
}
/**
* Support for pre-System/ Webpack projects.
*/
interface Window {
ngsham: any;
ngshim: any;
ngshambles: any;
angular: any;
bootstrap: Function;
}
/**
* "Component Definition Object"
* Version-agnostic DDO (Directive Definition Object).
*/
interface ShamCDO {
selector: string;
ng1Name: string;
restrict: string;
templateUrl: string|boolean;
properties: Array<string>;
events: Array<string>;
host: Array<string>;
class: any;
inject: Array<string>;
annotations: ShamAnnotationsObject;
autoNamespace: boolean;
isDecorator: boolean;
}
/**
* Sham backports @Component annotations, just like Angular 2's ES5 API.
*/
interface ShamAnnotationsObject {
properties: Array<string>;
events: Array<string>;
host: Array<string>;
}
/**
* Expected when using floral (Typescript Ng2) syntax.
*/
interface Ng2CDO {
selector: string
}
/**
* How Sham's config is passed around.
*/
interface ShamConfigObject {
appName: string;
angularVersion: number;
componentsDir: string;
forceUseComponentCreator: any;
verbose: boolean;
}