Skip to content

Commit be661e0

Browse files
cyrilletuziKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@schematics/angular): add compliance with call-signature lint rule
1 parent b5306c8 commit be661e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class <%= classify(name) %><%= classify(type) %> implements OnInit {
1717

1818
constructor() { }
1919

20-
ngOnInit() {
20+
ngOnInit(): void {
2121
}
2222

2323
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { browser, by, element } from 'protractor';
22

33
export class AppPage {
4-
navigateTo() {
4+
navigateTo(): Promise<any> {
55
return browser.get(browser.baseUrl) as Promise<any>;
66
}
77

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

0 commit comments

Comments
 (0)