mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 18:06:01 +08:00
Declare purl as string literal
Declare purl as string literal so we can do ´import purl = require("purl")´.
This commit is contained in:
4
purl/purl.d.ts
vendored
4
purl/purl.d.ts
vendored
@@ -48,3 +48,7 @@ declare function purl(): purl.Url;
|
||||
* @param someUrl the url to be parsed
|
||||
*/
|
||||
declare function purl(someUrl: string): purl.Url;
|
||||
|
||||
declare module "purl" {
|
||||
export = purl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user