Skip to content

Commit

Permalink
fix(StateRegistry): Allow stateRegistry.register() to take a Ng1State…
Browse files Browse the repository at this point in the history
…Declaration

Closes #3345
  • Loading branch information
christopherthielen committed Feb 26, 2017
1 parent 1210344 commit cc88525
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,10 @@ export interface TemplateFactoryProvider {
* @param useUnsafeHttpService `true` to use `$http` to fetch templates
*/
useHttpService(useUnsafeHttpService: boolean);
}

declare module "ui-router-core/lib/state/stateRegistry" {
interface StateRegistry {
register(state: Ng1StateDeclaration)
}
}

0 comments on commit cc88525

Please sign in to comment.