Skip to content

Commit

Permalink
fix(@schematics/angular): add compliance with call-signature lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilletuzi authored and Keen Yee Liau committed Jan 27, 2020
1 parent b5306c8 commit be661e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class <%= classify(name) %><%= classify(type) %> implements OnInit {

constructor() { }

ngOnInit() {
ngOnInit(): void {
}

}
4 changes: 2 additions & 2 deletions packages/schematics/angular/e2e/files/src/app.po.ts.template
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { browser, by, element } from 'protractor';

export class AppPage {
navigateTo() {
navigateTo(): Promise<any> {
return browser.get(browser.baseUrl) as Promise<any>;
}

getTitleText() {
getTitleText(): Promise<string> {
return element(by.css('<%= rootSelector %> .content span')).getText() as Promise<string>;
}
}

0 comments on commit be661e0

Please sign in to comment.