Skip to content

Commit db4e63f

Browse files
fix: make augmented StateRegistry.register overload better match the signature in core
1 parent bc04aeb commit db4e63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @publicapi @module ng1 */ /** */
2-
import { StateDeclaration, _ViewDeclaration, IInjectable, Transition, HookResult } from '@uirouter/core';
2+
import { StateDeclaration, _ViewDeclaration, IInjectable, Transition, HookResult, StateRegistry } from '@uirouter/core';
33

44
/**
55
* The signature for Angular 1 State Transition Hooks.
@@ -740,6 +740,6 @@ export interface TemplateFactoryProvider {
740740

741741
declare module '@uirouter/core/lib/state/stateRegistry' {
742742
interface StateRegistry {
743-
register(state: Ng1StateDeclaration);
743+
register(state: Ng1StateDeclaration | { new (): Ng1StateDeclaration });
744744
}
745745
}

0 commit comments

Comments
 (0)