build-url
build-url copied to clipboard
add typescript definition for single parameter variant
The single parameter variant of the function call is documented in README:
buildUrl({
queryParams: {
foo: 'bar',
bar: 'baz'
}
});
but not currently allowed by typescript definitions. The PR fixes that.