Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/url/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Master

### Bug fix

- `addQueryArgs` arguments are optional ([#21926](https://github.com/WordPress/gutenberg/pull/21926))

## 2.13.0 (2020-04-15)

### New feature
Expand Down
2 changes: 1 addition & 1 deletion packages/url/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const newURL = addQueryArgs( 'https://google.com', { q: 'test' } ); // https://g
_Parameters_

- _url_ `[string]`: URL to which arguments should be appended. If omitted, only the resulting querystring is returned.
- _args_ `Object`: Query arguments to apply to URL.
- _args_ `[Object]`: Query arguments to apply to URL.

_Returns_

Expand Down
2 changes: 1 addition & 1 deletion packages/url/src/add-query-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { parse, stringify } from 'qs';
*
* @param {string} [url=''] URL to which arguments should be appended. If omitted,
* only the resulting querystring is returned.
* @param {Object} args Query arguments to apply to URL.
* @param {Object} [args] Query arguments to apply to URL.
*
* @example
* ```js
Expand Down
5 changes: 1 addition & 4 deletions packages/url/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"declarationDir": "build-types",

// This is required because the `react-native-url-polyfill` dependency lacks types
"noImplicitAny": false
"declarationDir": "build-types"
},
"include": [ "src/**/*" ]
}