Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#2107 from pine613/feature/add_url
Browse files Browse the repository at this point in the history
Add library "url()", Closes DefinitelyTyped#2106
  • Loading branch information
Bartvds committed Apr 26, 2014
2 parents dc64f82 + 3963c44 commit 7631e9e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
9 changes: 9 additions & 0 deletions js-url/js-url-test.ts
Original file line number Diff line number Diff line change
@@ -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');
14 changes: 14 additions & 0 deletions js-url/js-url.d.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 7631e9e

Please sign in to comment.