|
8 | 8 | export class StateRegistryProvider { |
9 | 9 | static $inject: string[]; |
10 | 10 | /** |
11 | | - * @param urlService |
12 | | - * @param stateService |
13 | | - * @param {import('../router.js').RouterProvider} globals |
14 | | - * @param viewService |
| 11 | + * @param {ng.UrlService} urlService |
| 12 | + * @param {ng.StateService} stateService |
| 13 | + * @param {ng.RouterService} globals |
| 14 | + * @param {ng.ViewService} viewService |
15 | 15 | */ |
16 | 16 | constructor( |
17 | | - urlService: any, |
18 | | - stateService: any, |
19 | | - globals: import("../router.js").RouterProvider, |
20 | | - viewService: any, |
| 17 | + urlService: ng.UrlService, |
| 18 | + stateService: ng.StateService, |
| 19 | + globals: ng.RouterService, |
| 20 | + viewService: ng.ViewService, |
21 | 21 | ); |
22 | | - states: {}; |
23 | | - urlService: any; |
24 | | - urlServiceRules: any; |
| 22 | + /** @type {Record<string, import("./state-object.js").StateObject>} */ |
| 23 | + states: Record<string, import("./state-object.js").StateObject>; |
| 24 | + urlService: import("../url/url-service.js").UrlService; |
| 25 | + urlServiceRules: import("../url/url-rules.js").UrlRules; |
25 | 26 | $injector: any; |
26 | 27 | listeners: any[]; |
27 | 28 | matcher: StateMatcher; |
@@ -110,6 +111,10 @@ export class StateRegistryProvider { |
110 | 111 | * @returns {import('./state-object').StateObject[]} a list of removed states |
111 | 112 | */ |
112 | 113 | deregister(stateOrName: any): any[]; |
| 114 | + /** |
| 115 | + * @return {ng.StateDeclaration[]} |
| 116 | + */ |
| 117 | + getAll(): ng.StateDeclaration[]; |
113 | 118 | get(stateOrName: any, base: any, ...args: any[]): any; |
114 | 119 | /** |
115 | 120 | * Registers a [[BuilderFunction]] for a specific [[StateObject]] property (e.g., `parent`, `url`, or `path`). |
|
0 commit comments