mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
Add support for URI()
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
/// <reference path="URI.d.ts" />
|
||||
|
||||
URI();
|
||||
URI('http://user:pass@example.org:80/foo/bar.html?foo=bar&bar=baz#frag');
|
||||
URI({
|
||||
protocol: 'http',
|
||||
username: 'user',
|
||||
password: 'pass',
|
||||
hostname: 'example.org',
|
||||
port: '80',
|
||||
path: '/foo/bar.html',
|
||||
query: 'foo=bar&bar=baz',
|
||||
fragment: 'frag'
|
||||
});
|
||||
|
||||
new URI();
|
||||
new URI('http://user:pass@example.org:80/foo/bar.html?foo=bar&bar=baz#frag');
|
||||
new URI({
|
||||
|
||||
Vendored
+4
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for URI.js
|
||||
// Type definitions for URI.js 1.15.1
|
||||
// Project: https://github.com/medialize/URI.js
|
||||
// Definitions by: RodneyJT <https://github.com/RodneyJT>, Brian Surowiec <https://github.com/xt0rted>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -128,6 +128,9 @@ declare module uri {
|
||||
}
|
||||
|
||||
interface URIStatic {
|
||||
(): URI;
|
||||
(value: string | URIOptions): URI;
|
||||
|
||||
new (): URI;
|
||||
new (value: string | URIOptions): URI;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user