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.
This commit is contained in:
Steve Fenton
2013-01-04 09:33:41 +00:00
parent 1465409108
commit 8fcb7b68f1

View File

@@ -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;