mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Add html element constructors
This commit is contained in:
@@ -12,6 +12,7 @@ URI({
|
||||
query: 'foo=bar&bar=baz',
|
||||
fragment: 'frag'
|
||||
});
|
||||
URI(document.createElement('a'));
|
||||
|
||||
new URI();
|
||||
new URI('http://user:pass@example.org:80/foo/bar.html?foo=bar&bar=baz#frag');
|
||||
@@ -25,6 +26,7 @@ new URI({
|
||||
query: 'foo=bar&bar=baz',
|
||||
fragment: 'frag'
|
||||
});
|
||||
new URI(document.createElement('a'));
|
||||
|
||||
URI('').setQuery('foo', 'bar');
|
||||
URI('').setQuery({ foo: 'bar' });
|
||||
|
||||
Vendored
+2
-2
@@ -133,10 +133,10 @@ declare module uri {
|
||||
|
||||
interface URIStatic {
|
||||
(): URI;
|
||||
(value: string | URIOptions): URI;
|
||||
(value: string | URIOptions | HTMLElement): URI;
|
||||
|
||||
new (): URI;
|
||||
new (value: string | URIOptions): URI;
|
||||
new (value: string | URIOptions | HTMLElement): URI;
|
||||
|
||||
addQuery(data: Object, prop: string, value: string): Object;
|
||||
addQuery(data: Object, qryObj: Object): Object;
|
||||
|
||||
Reference in New Issue
Block a user