From 17d7f5e46d17326a499f298b6fee50aea5199109 Mon Sep 17 00:00:00 2001 From: Geir Sagberg Date: Fri, 13 Jun 2014 13:31:26 +0200 Subject: [PATCH] Declare purl as string literal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Declare purl as string literal so we can do ´import purl = require("purl")´. --- purl/purl.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/purl/purl.d.ts b/purl/purl.d.ts index e937a68f44..00312595e3 100644 --- a/purl/purl.d.ts +++ b/purl/purl.d.ts @@ -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; +}