fix(examples): make them work with `noImplicitAny` and `declarations:true`

This commit is contained in:
Tobias Bosch 2016-09-14 09:41:40 -07:00
parent 1a035a0dc7
commit 0b9425bbb4
3 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@ declare var expect: any;
// TODO (juliemr): remove this method once this becomes a protractor plugin
export function verifyNoBrowserErrors() {
browser.manage().logs().get('browser').then(function(browserLog) {
browser.manage().logs().get('browser').then(function(browserLog: any[]) {
var errors: any[] = [];
browserLog.filter(logEntry => {
var msg = logEntry.message;

View File

@ -36,9 +36,9 @@ export class NestedFormGroupComp {
email: new FormControl()
});
get first() { return this.form.get('name.first'); }
get first(): any { return this.form.get('name.first'); }
get name() { return this.form.get('name'); }
get name(): any { return this.form.get('name'); }
onSubmit() {
console.log(this.first.value); // 'Nancy'

View File

@ -30,7 +30,7 @@ export class SimpleFormGroup {
last: new FormControl('Drew'),
});
get first() { return this.form.get('first'); }
get first(): any { return this.form.get('first'); }
onSubmit(): void {
console.log(this.form.value); // {first: 'Nancy', last: 'Drew'}