mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Merge pull request #2107 from pine613/feature/add_url
Add library "url()", Closes #2106
This commit is contained in:
@@ -156,6 +156,7 @@ All definitions files include a header with the author and editors, so at some p
|
||||
* [jQuery.Watermark](http://jquery-watermark.googlecode.com) (by [Anwar Javed](https://github.com/anwarjaved))
|
||||
* [jQuery.base64](https://github.com/yatt/jquery.base64) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
|
||||
* [js-git](https://github.com/creationix/js-git) (by [Bart van der Schoor](https://github.com/Bartvds))
|
||||
* [js-url](https://github.com/websanova/js-url) (by [MIZUNE Pine](https://github.com/pine613))
|
||||
* [js-yaml](https://github.com/nodeca/js-yaml) (by [Bart van der Schoor](https://github.com/Bartvds/))
|
||||
* [jScrollPane](http://jscrollpane.kelvinluck.com) (by [Dániel Tar](https://github.com/qcz))
|
||||
* [JSDeferred](http://cho45.stfuawsc.com/jsdeferred/) (by [Daisuke Mino](https://github.com/minodisk))
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/// <reference path="js-url.d.ts" />
|
||||
|
||||
url();
|
||||
|
||||
url('domain');
|
||||
url(1);
|
||||
|
||||
url('domain', 'test.www.example.com/path/here');
|
||||
url(-1, 'test.www.example.com/path/here');
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// Type definitions for url() v1.8.6
|
||||
// Project: https://github.com/websanova/js-url
|
||||
// Definitions by: MIZUNE Pine <https://github.com/pine613>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface UrlStatic {
|
||||
(): string;
|
||||
(pattern: string): string;
|
||||
(pattern: number): string;
|
||||
(pattern: string, url: string): string;
|
||||
(pattern: number, url: string): string;
|
||||
}
|
||||
|
||||
declare var url: UrlStatic;
|
||||
Reference in New Issue
Block a user