mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
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:
1 parent
1465409108
commit
8fcb7b68f1
1 file changed
+1
-3
Vendored
+1
-3
@@ -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;
|
||||
Reference in new issue
Block a user