Skip to content

Commit

Permalink
Sync readme.md and index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
decimoseptimo committed Mar 11, 2021
1 parent 7a1dfa9 commit 9fd5fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ export interface StringifyOptions {
queryString.stringify({foo: [1, 2, 3]}, {arrayFormat: 'comma'});
//=> 'foo=1,2,3'
queryString.stringify({foo: [1, null, '']}, {arrayFormat: 'comma'});
//=> 'foo=1,,'
// Note that typing information for null values is lost
// and `.parse('foo=1,,')` would return `{foo: [1, '', '']}`.
```
- `separator`: Serialize arrays by separating elements with character:
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ queryString.stringify({foo: [1, 2, 3]}, {arrayFormat: 'comma'});

queryString.stringify({foo: [1, null, '']}, {arrayFormat: 'comma'});
//=> 'foo=1,,'
// Note that typing information for null values are lost
// Note that typing information for null values is lost
// and `.parse('foo=1,,')` would return `{foo: [1, '', '']}`.
```

Expand Down

0 comments on commit 9fd5fa2

Please sign in to comment.