mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 23:37:35 +08:00
angular - Separate interfaces for each lifecycle hook (#16299)
* Separate interfaces for each lifecycle hook Having one required hook per interface leads to greater type safety than having a single IController interface with all properties optional. Namely, the IController interface will not help you if you misspell a hook name. (A slight improvement, admittedly, but an improvement nonetheless.) This is closer to how the typings are done for lifecycle hooks in ng2. * Use `dtslint` * Fix trailing whitespace
This commit is contained in:
committed by
Mohamed Hegazy
parent
f782f81c7a
commit
514a27de01
@@ -17,4 +17,4 @@
|
||||
"unified-signatures": false,
|
||||
"void-return": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user