mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat(common): HttpParams fromObject accepts ReadonlyArray<string> (#31072)
Fixes #28452 PR Close #31072
This commit is contained in:
committed by
Misko Hevery
parent
9a55eaf10d
commit
f5bec3ff50
@@ -109,7 +109,7 @@ export interface HttpParamsOptions {
|
||||
fromString?: string;
|
||||
|
||||
/** Object map of the HTTP parameters. Mutually exclusive with `fromString`. */
|
||||
fromObject?: {[param: string]: string | string[]};
|
||||
fromObject?: {[param: string]: string | ReadonlyArray<string>};
|
||||
|
||||
/** Encoding codec used to parse and serialize the parameters. */
|
||||
encoder?: HttpParameterCodec;
|
||||
|
||||
Reference in New Issue
Block a user