mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update setInterval
This commit is contained in:
@@ -38,6 +38,7 @@ angular.module('app', ['ngIdle'])
|
||||
Keepalive.start();
|
||||
Keepalive.ping();
|
||||
Keepalive.stop();
|
||||
Keepalive.setInterval(10);
|
||||
|
||||
Title.setEnabled(Title.isEnabled());
|
||||
Title.original(Title.original());
|
||||
|
||||
Vendored
+6
@@ -145,6 +145,12 @@ declare module angular.idle {
|
||||
* Performs one ping only.
|
||||
*/
|
||||
ping(): void;
|
||||
|
||||
/**
|
||||
* Changes the interval value at runtime.
|
||||
* You will need to restart the pinging process by calling start() manually for the changes to be reflected.
|
||||
*/
|
||||
setInterval(seconds: number): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user