refactor: add types (#9148)
This commit is contained in:
@@ -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 */) {}
|
||||
|
||||
Reference in New Issue
Block a user