File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ Serialization uses
21
21
[ ` URLSearchParams.toString() ` ] ( https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/toString#return_value )
22
22
which encodes most non-alphanumeric characters.
23
23
24
- - The primitive types ` string ` , ` number ` , and ` bigint ` are serialized using ` .toString() ` .
24
+ Serialization is guaranteed to be well-defined within each type, i.e.,
25
+ if the type of value for a given key in the query string is fixed and known by
26
+ the consumer parsing the string, it can be unambigously parsed back to the original primitive value.
27
+
28
+ - The primitive type ` string ` is serialized using ` .toString() ` .
29
+ - The primitive ` number ` and ` bigint ` types are serialized using ` .toString() ` .
25
30
- The primitive ` boolean ` type is serialized using ` .toString() ` ,
26
31
e.g., ` { foo: true, bar: false } ` serializes to ` foo=true&bar=false ` .
27
32
- The primitive ` null ` and ` undefined ` values are removed,
You can’t perform that action at this time.
0 commit comments