mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Merge pull request #6114 from bdoss/urijs
Added duplicateQueryParameters method from docs to URI.js.
This commit is contained in:
@@ -37,4 +37,9 @@ var uri: uri.URI = $('a').uri();
|
||||
|
||||
URI('http://example.org/foo/hello.html').segment('bar');
|
||||
URI('http://example.org/foo/hello.html').segment(0, 'bar');
|
||||
URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']);
|
||||
URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']);
|
||||
|
||||
var withDuplicates = URI("?bar=1&bar=1")
|
||||
.duplicateQueryParameters(true)
|
||||
.normalizeQuery()
|
||||
.toString();
|
||||
Vendored
+2
@@ -27,6 +27,8 @@ declare module uri {
|
||||
domain(): string;
|
||||
domain(domain: boolean): string;
|
||||
domain(domain: string): URI;
|
||||
|
||||
duplicateQueryParameters(val: boolean): URI;
|
||||
|
||||
equals(): boolean;
|
||||
equals(url: string): boolean;
|
||||
|
||||
Reference in New Issue
Block a user