From adcb4a09b36a7a04b4564277f9f9b06ce09feaba Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Tue, 28 Jan 2014 14:20:21 +0000 Subject: [PATCH] Explode all combinations --- angular-ui/angular-ui-router.d.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/angular-ui/angular-ui-router.d.ts b/angular-ui/angular-ui-router.d.ts index eec2cfcf34..eb3bca9ac5 100644 --- a/angular-ui/angular-ui-router.d.ts +++ b/angular-ui/angular-ui-router.d.ts @@ -42,12 +42,20 @@ declare module ng.ui { } interface IUrlRouterProvider extends IServiceProvider { - when(whenPath: string, toPath: any): IUrlRouterProvider; - when(whenPath: RegExp, toPath: any): IUrlRouterProvider; - when(whenPath: IUrlMatcher, toPath: any): IUrlRouterProvider; + when(whenPath: string, toPath: string): IUrlRouterProvider; + when(whenPath: RegExp, toPath: string): IUrlRouterProvider; + when(whenPath: IUrlMatcher, toPath: string): IUrlRouterProvider; + when(whenPath: string, handler: ($injector?: ng.auto.IInjectorService, $location?: ng.ILocationService) => any): IUrlRouterProvider; + when(whenPath: RegExp, handler: ($injector?: ng.auto.IInjectorService, $location?: ng.ILocationService) => any): IUrlRouterProvider; + when(whenPath: IUrlMatcher, hanlder: ($injector?: ng.auto.IInjectorService, $location?: ng.ILocationService) => any): IUrlRouterProvider; + when(whenPath: string, handler: any[]): IUrlRouterProvider; + when(whenPath: RegExp, handler: any[]): IUrlRouterProvider; + when(whenPath: IUrlMatcher, handler: any[]): IUrlRouterProvider; otherwise(path: string): IUrlRouterProvider; - otherwise(path: Function): IUrlRouterProvider; - rule(handler: Function): IUrlRouterProvider; + otherwise(handler: ($injector?: ng.auto.IInjectorService, $location?: ng.ILocationService) => any): IUrlRouterProvider; + otherwise(handler: any[]): IUrlRouterProvider; + rule(handler: ($injector?: ng.auto.IInjectorService, $location?: ng.ILocationService) => any): IUrlRouterProvider; + rule(handler: any[]): IUrlRouterProvider; } interface IStateOptions {