refactor: add types (#9148)

This commit is contained in:
Victor Berchet
2016-06-11 21:23:37 -07:00
committed by GitHub
parent 55860e1621
commit 1f6fd3c8fc
26 changed files with 96 additions and 123 deletions
@@ -276,8 +276,6 @@ class TestComponent {
this.nestedBooleanCondition = true;
this.numberCondition = 1;
this.stringCondition = 'foo';
this.functionCondition = function(s: any /** TODO #9100 */, n: any /** TODO #9100 */) {
return s == 'foo' && n == 1;
};
this.functionCondition = function(s: any, n: any): boolean { return s == 'foo' && n == 1; };
}
}
@@ -48,7 +48,7 @@ export function main() {
.toEqual('40px');
expr = fixture.debugElement.componentInstance.expr;
(expr as any /** TODO #9100 */)['max-width'] = '30%';
(expr as any)['max-width'] = '30%';
fixture.detectChanges();
expect(getDOM().getStyle(
fixture.debugElement.children[0].nativeElement, 'max-width'))
@@ -153,5 +153,5 @@ export function main() {
@Component({selector: 'test-cmp', directives: [NgStyle], template: ''})
class TestComponent {
expr: any /** TODO #9100 */;
expr: any;
}
@@ -13,7 +13,7 @@ import {PromiseWrapper} from '../../src/facade/promise';
import {SimpleChange} from '@angular/core/src/change_detection';
class DummyControlValueAccessor implements ControlValueAccessor {
writtenValue: any /** TODO #9100 */;
writtenValue: any;
registerOnChange(fn: any /** TODO #9100 */) {}
registerOnTouched(fn: any /** TODO #9100 */) {}