mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Angular ui bootstrap: Update IModalSettings controller and resolve properties to not be any type
* Update resolve and controller from any to something more explicit that matches docs for invoke, ui-router resolve, and angular-ui-bootstrap modal settings. * Add comments to clarify structure of array. * Add object in the union type for values of resolve object.
This commit is contained in:
committed by
Masahiro Wakame
parent
9ccdf35169
commit
7b28209e09
+4
-2
@@ -308,8 +308,9 @@ declare namespace angular.ui.bootstrap {
|
||||
/**
|
||||
* a controller for a modal instance - it can initialize scope used by modal.
|
||||
* A controller can be injected with `$modalInstance`
|
||||
* If value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method)
|
||||
*/
|
||||
controller?: any;
|
||||
controller?: string | Function | Array<string | Function>;
|
||||
|
||||
/**
|
||||
* an alternative to the controller-as syntax, matching the API of directive definitions.
|
||||
@@ -326,8 +327,9 @@ declare namespace angular.ui.bootstrap {
|
||||
|
||||
/**
|
||||
* members that will be resolved and passed to the controller as locals; it is equivalent of the `resolve` property for AngularJS routes
|
||||
* If property value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method)
|
||||
*/
|
||||
resolve?: any;
|
||||
resolve?: { [ key: string ]: string | Function | Array<string | Function> | Object };
|
||||
|
||||
/**
|
||||
* Set to false to disable animations on new modal/backdrop. Does not toggle animations for modals/backdrops that are already displayed.
|
||||
|
||||
Reference in New Issue
Block a user