Fixed incorrect return type for segment method.

This commit is contained in:
Blake Doss
2015-09-25 15:02:21 -04:00
parent 54f064352a
commit 68c8bc9afd
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -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']);
+3 -3
View File
@@ -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;