Skip to content

Commit

Permalink
fix: make augmented StateRegistry.register overload better match the …
Browse files Browse the repository at this point in the history
…signature in core
  • Loading branch information
christopherthielen committed Jul 20, 2020
1 parent bc04aeb commit db4e63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @publicapi @module ng1 */ /** */
import { StateDeclaration, _ViewDeclaration, IInjectable, Transition, HookResult } from '@uirouter/core';
import { StateDeclaration, _ViewDeclaration, IInjectable, Transition, HookResult, StateRegistry } from '@uirouter/core';

/**
* The signature for Angular 1 State Transition Hooks.
Expand Down Expand Up @@ -740,6 +740,6 @@ export interface TemplateFactoryProvider {

declare module '@uirouter/core/lib/state/stateRegistry' {
interface StateRegistry {
register(state: Ng1StateDeclaration);
register(state: Ng1StateDeclaration | { new (): Ng1StateDeclaration });
}
}

0 comments on commit db4e63f

Please sign in to comment.