mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
History.js definitions and tests added
This commit is contained in:
1 parent
716a5a0c49
commit
9f07758e11
2 files changed
+42
No files matched your search
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// Type definitions for History.js
|
||||
// Project: https://github.com/balupton/History.js
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface HistoryAdapter {
|
||||
bind(element, event, callback);
|
||||
trigger(element, event);
|
||||
onDomLoad(callback);
|
||||
}
|
||||
|
||||
interface HistoryStatic {
|
||||
enabled: bool;
|
||||
pushState(data, title, url);
|
||||
replaceState(data, title, url);
|
||||
getState();
|
||||
getHash();
|
||||
Adapter: HistoryAdapter;
|
||||
back();
|
||||
forward();
|
||||
go(X);
|
||||
log(...messages: any[]);
|
||||
debug(...messages: any[]);
|
||||
}
|
||||
|
||||
declare var History: HistoryStatic;
|
||||
Reference in new issue
Block a user