mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 00:59:29 +08:00
Add a couple |nulls (#13956)
This commit is contained in:
13
angular/index.d.ts
vendored
13
angular/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user