From 8fcb7b68f12b59118a3b7e88559ca81e04b92f5e Mon Sep 17 00:00:00 2001 From: Steve Fenton Date: Fri, 4 Jan 2013 09:33:41 +0000 Subject: [PATCH] Update history/history-1.7.d.ts Rather than adding a second `declare var History`, which already exists in lib.d.ts, this version extends the existing History interface, to enrich the existing History var. --- history/history-1.7.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/history/history-1.7.d.ts b/history/history-1.7.d.ts index 33855672a..5d076c2ae 100644 --- a/history/history-1.7.d.ts +++ b/history/history-1.7.d.ts @@ -10,7 +10,7 @@ interface HistoryAdapter { onDomLoad(callback); } -interface HistoryStatic { +interface History { enabled: bool; pushState(data, title, url); replaceState(data, title, url); @@ -23,5 +23,3 @@ interface HistoryStatic { log(...messages: any[]); debug(...messages: any[]); } - -declare var History: HistoryStatic;