From 3153e0fb9982cd5135d141a0b6d8aa84e33be4e8 Mon Sep 17 00:00:00 2001 From: ersimont Date: Fri, 13 Jan 2017 19:50:55 -0500 Subject: [PATCH] Add a couple `|null`s (#13956) --- angular/index.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/angular/index.d.ts b/angular/index.d.ts index bd4cd76f59..bae6351cfb 100644 --- a/angular/index.d.ts +++ b/angular/index.d.ts @@ -901,8 +901,17 @@ declare namespace angular { */ interface ILocationService { absUrl(): string; + + /** + * Returns the hash fragment + */ hash(): string; - hash(newHash: string): ILocationService; + + /** + * Changes the hash fragment and returns `$location` + */ + hash(newHash: string|null): ILocationService; + host(): string; /** @@ -942,7 +951,7 @@ declare namespace angular { * @param search New search params * @param paramValue If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign. */ - search(search: string, paramValue: string|number|string[]|boolean): ILocationService; + search(search: string, paramValue: string|number|null|string[]|boolean): ILocationService; state(): any; state(state: any): ILocationService;