mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
IComponentControllerService ($componentController) has a second param, locals, which allows for an optional scope key to be provided. This fixes the typing to make that property actually optional. You can see that here https://docs.angularjs.org/guide/component#unit-testing-component-controllers and here https://docs.angularjs.org/api/ngMock/service/$componentController