Add a couple |nulls (#13956)

This commit is contained in:
ersimont
2017-01-13 19:50:55 -05:00
committed by Sheetal Nandi
parent c10f2864b9
commit 3153e0fb99

13
angular/index.d.ts vendored
View File

@@ -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;