added null to possible return types for get method in url-search-params (#27183)

This commit is contained in:
Amardeepsingh
2018-07-12 00:47:49 -07:00
committed by Ryan Cavanaugh
parent c61b1db6eb
commit ef67b11c63
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ declare class URLSearchParams {
append(name: string, value: any): void;
delete(name: string): void;
entries(): Iterator<string>;
get(name: string): string;
get(name: string): string | null;
getAll(name: string): string[];
has(name: string): boolean;
keys(): Iterator<string>;
@@ -11,6 +11,8 @@ params.entries();
params.get("b");
params.get("d");
params.getAll("b");
params.has("b");