mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fixed incorrect return type for segment method.
This commit is contained in:
@@ -34,3 +34,7 @@ URI('').setSearch('foo', 'bar');
|
||||
URI('').setSearch({ foo: 'bar' });
|
||||
|
||||
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']);
|
||||
Vendored
+3
-3
@@ -95,10 +95,10 @@ declare module uri {
|
||||
search(qry: boolean): any;
|
||||
search(qry: Object): URI;
|
||||
segment(): string[];
|
||||
segment(segments: string[]): string;
|
||||
segment(segments: string[]): URI;
|
||||
segment(position: number): string;
|
||||
segment(position: number, level: string): string;
|
||||
segment(level: string): string;
|
||||
segment(position: number, level: string): URI;
|
||||
segment(segment: string): URI;
|
||||
setQuery(key: string, value: string): URI;
|
||||
setQuery(qry: Object): URI;
|
||||
setSearch(key: string, value: string): URI;
|
||||
|
||||
Reference in New Issue
Block a user