angular2-2.0.0-alpha.39

This commit is contained in:
Tobias Bosch
2015-10-06 13:05:18 -07:00
parent 70b40db9e0
commit c321c3c902
8 changed files with 20225 additions and 73 deletions

127
angular2/angular2.d.ts vendored
View File

@@ -1,4 +1,4 @@
// Type definitions for Angular v2.0.0-local_sha.f77234e
// Type definitions for Angular v2.0.0-39
// Project: http://angular.io/
// Definitions by: angular team <https://github.com/angular/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -27,7 +27,6 @@
interface Map<K,V> {}
interface StringMap<K,V> extends Map<K,V> {}
declare module ng {
@@ -463,12 +462,12 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
viewBindings?: any[],
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
changeDetection?: ChangeDetectionStrategy,
});
@@ -915,11 +914,11 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
});
/**
@@ -1169,7 +1168,7 @@ declare module ng {
* }
* ```
*/
host: StringMap<string, string>;
host: {[key: string]: string};
/**
* Defines the set of injectable objects that are visible to a Directive and its light DOM
@@ -1284,7 +1283,7 @@ declare module ng {
* }
* ```
*/
queries: StringMap<string, any>;
queries: {[key: string]: any};
}
@@ -1751,11 +1750,11 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
}): DirectiveMetadata;
(obj: {
@@ -1764,11 +1763,11 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
}): DirectiveDecorator;
}
@@ -1825,11 +1824,11 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
}): ComponentMetadata;
@@ -1840,11 +1839,11 @@ declare module ng {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
}): ComponentDecorator;
@@ -2358,7 +2357,7 @@ declare module ng {
*
* See {@link Class} for example of usage.
*/
constructor: (Function | any[]);
constructor: Function | any[];
}
@@ -4797,7 +4796,7 @@ declare module ng {
*/
interface OnChanges {
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
}
@@ -5880,7 +5879,7 @@ declare module ng {
* Once a template is registered it can be referenced via {@link RenderBeginComponentCmd} when
* {@link #createProtoView creating Render ProtoView}.
*/
registerComponentTemplate(templateId: number, commands: RenderTemplateCmd[], styles: string[]): void;
registerComponentTemplate(templateId: number, commands: RenderTemplateCmd[], styles: string[], nativeShadow: boolean): void;
/**
* Creates a {@link RenderProtoViewRef} from an array of {@link RenderTemplateCmd}`s.
@@ -6489,7 +6488,7 @@ declare module ng {
valid: boolean;
errors: StringMap<string, any>;
errors: {[key: string]: any};
pristine: boolean;
@@ -6578,9 +6577,9 @@ declare module ng {
*/
class ControlGroup extends AbstractControl {
constructor(controls: StringMap<string, AbstractControl>, optionals?: StringMap<string, boolean>, validator?: Function);
constructor(controls: {[key: string]: AbstractControl}, optionals?: {[key: string]: boolean}, validator?: Function);
controls: StringMap<string, AbstractControl>;
controls: {[key: string]: AbstractControl};
addControl(name: string, control: AbstractControl): void;
@@ -6658,7 +6657,7 @@ declare module ng {
valid: boolean;
errors: StringMap<string, any>;
errors: {[key: string]: any};
pristine: boolean;
@@ -6779,7 +6778,7 @@ declare module ng {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
onDestroy(): void;
@@ -6859,7 +6858,7 @@ declare module ng {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
path: string[];
@@ -6905,7 +6904,7 @@ declare module ng {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
control: Control;
@@ -7176,7 +7175,7 @@ declare module ng {
path: string[];
controls: StringMap<string, AbstractControl>;
controls: {[key: string]: AbstractControl};
addControl(dir: NgControl): void;
@@ -7357,15 +7356,15 @@ declare module ng {
*/
class Validators {
static required(control:Control): StringMap<string, boolean>;
static required(control:Control): {[key: string]: boolean};
static nullValidator(c: any): StringMap<string, boolean>;
static nullValidator(c: any): {[key: string]: boolean};
static compose(validators: Function[]): Function;
static group(group:ControlGroup): StringMap<string, boolean>;
static group(group:ControlGroup): {[key: string]: any[]};
static array(array:ControlArray): StringMap<string, boolean>;
static array(array:ControlArray): {[key: string]: any[]};
}
@@ -7437,7 +7436,7 @@ declare module ng {
*/
class FormBuilder {
group(controlsConfig: StringMap<string, any>, extra?: StringMap<string, any>): ControlGroup;
group(controlsConfig: {[key: string]: any}, extra?: {[key: string]: any}): ControlGroup;
control(value: Object, validator?: Function): Control;
@@ -8342,7 +8341,7 @@ declare module ngWorker {
* Once a template is registered it can be referenced via {@link RenderBeginComponentCmd} when
* {@link #createProtoView creating Render ProtoView}.
*/
registerComponentTemplate(templateId: number, commands: RenderTemplateCmd[], styles: string[]): void;
registerComponentTemplate(templateId: number, commands: RenderTemplateCmd[], styles: string[], nativeShadow: boolean): void;
/**
* Creates a {@link RenderProtoViewRef} from an array of {@link RenderTemplateCmd}`s.
@@ -8933,7 +8932,7 @@ declare module ngWorker {
*/
interface OnChanges {
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
}
@@ -9499,12 +9498,12 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
viewBindings?: any[],
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
changeDetection?: ChangeDetectionStrategy,
});
@@ -9951,11 +9950,11 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
});
/**
@@ -10205,7 +10204,7 @@ declare module ngWorker {
* }
* ```
*/
host: StringMap<string, string>;
host: {[key: string]: string};
/**
* Defines the set of injectable objects that are visible to a Directive and its light DOM
@@ -10320,7 +10319,7 @@ declare module ngWorker {
* }
* ```
*/
queries: StringMap<string, any>;
queries: {[key: string]: any};
}
@@ -10787,11 +10786,11 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
}): DirectiveMetadata;
(obj: {
@@ -10800,11 +10799,11 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>
queries?: {[key: string]: any}
}): DirectiveDecorator;
}
@@ -10861,11 +10860,11 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
}): ComponentMetadata;
@@ -10876,11 +10875,11 @@ declare module ngWorker {
outputs?: string[],
properties?: string[],
events?: string[],
host?: StringMap<string, string>,
host?: {[key: string]: string},
bindings?: any[],
exportAs?: string,
moduleId?: string,
queries?: StringMap<string, any>,
queries?: {[key: string]: any},
viewBindings?: any[],
changeDetection?: ChangeDetectionStrategy,
}): ComponentDecorator;
@@ -11394,7 +11393,7 @@ declare module ngWorker {
*
* See {@link Class} for example of usage.
*/
constructor: (Function | any[]);
constructor: Function | any[];
}
@@ -14641,7 +14640,7 @@ declare module ngWorker {
valid: boolean;
errors: StringMap<string, any>;
errors: {[key: string]: any};
pristine: boolean;
@@ -14730,9 +14729,9 @@ declare module ngWorker {
*/
class ControlGroup extends AbstractControl {
constructor(controls: StringMap<string, AbstractControl>, optionals?: StringMap<string, boolean>, validator?: Function);
constructor(controls: {[key: string]: AbstractControl}, optionals?: {[key: string]: boolean}, validator?: Function);
controls: StringMap<string, AbstractControl>;
controls: {[key: string]: AbstractControl};
addControl(name: string, control: AbstractControl): void;
@@ -14810,7 +14809,7 @@ declare module ngWorker {
valid: boolean;
errors: StringMap<string, any>;
errors: {[key: string]: any};
pristine: boolean;
@@ -14931,7 +14930,7 @@ declare module ngWorker {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
onDestroy(): void;
@@ -15011,7 +15010,7 @@ declare module ngWorker {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
path: string[];
@@ -15057,7 +15056,7 @@ declare module ngWorker {
validators: Function[];
onChanges(changes: StringMap<string, SimpleChange>): void;
onChanges(changes: {[key: string]: SimpleChange}): void;
control: Control;
@@ -15328,7 +15327,7 @@ declare module ngWorker {
path: string[];
controls: StringMap<string, AbstractControl>;
controls: {[key: string]: AbstractControl};
addControl(dir: NgControl): void;
@@ -15509,15 +15508,15 @@ declare module ngWorker {
*/
class Validators {
static required(control:Control): StringMap<string, boolean>;
static required(control:Control): {[key: string]: boolean};
static nullValidator(c: any): StringMap<string, boolean>;
static nullValidator(c: any): {[key: string]: boolean};
static compose(validators: Function[]): Function;
static group(group:ControlGroup): StringMap<string, boolean>;
static group(group:ControlGroup): {[key: string]: any[]};
static array(array:ControlArray): StringMap<string, boolean>;
static array(array:ControlArray): {[key: string]: any[]};
}
@@ -15589,7 +15588,7 @@ declare module ngWorker {
*/
class FormBuilder {
group(controlsConfig: StringMap<string, any>, extra?: StringMap<string, any>): ControlGroup;
group(controlsConfig: {[key: string]: any}, extra?: {[key: string]: any}): ControlGroup;
control(value: Object, validator?: Function): Control;
@@ -16537,7 +16536,7 @@ declare module ngWorker {
class ReceivedMessage {
constructor(data: StringMap<string, any>);
constructor(data: {[key: string]: any});
method: string;
@@ -17064,7 +17063,7 @@ declare module ngUi {
class ReceivedMessage {
constructor(data: StringMap<string, any>);
constructor(data: {[key: string]: any});
method: string;