mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +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:
4
history/history-1.7.d.ts
vendored
4
history/history-1.7.d.ts
vendored
@@ -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