Skip to content

Commit cc88525

Browse files
fix(StateRegistry): Allow stateRegistry.register() to take a Ng1StateDeclaration
Closes #3345
1 parent 1210344 commit cc88525

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/interface.ts

+6
Original file line numberDiff line numberDiff line change
@@ -671,4 +671,10 @@ export interface TemplateFactoryProvider {
671671
* @param useUnsafeHttpService `true` to use `$http` to fetch templates
672672
*/
673673
useHttpService(useUnsafeHttpService: boolean);
674+
}
675+
676+
declare module "ui-router-core/lib/state/stateRegistry" {
677+
interface StateRegistry {
678+
register(state: Ng1StateDeclaration)
679+
}
674680
}

0 commit comments

Comments
 (0)