From 0c29979c89090444e7760a01542c2d5a1ecea205 Mon Sep 17 00:00:00 2001 From: Philip Bjorge Date: Tue, 19 Jan 2016 23:26:19 -0800 Subject: [PATCH] Updated per new api documentation --- angular-idle/angular-idle.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/angular-idle/angular-idle.d.ts b/angular-idle/angular-idle.d.ts index a53c3a930..098c81b15 100644 --- a/angular-idle/angular-idle.d.ts +++ b/angular-idle/angular-idle.d.ts @@ -118,7 +118,7 @@ declare module angular.idle { * This specifies how often the keepalive event is triggered and the * HTTP request is issued. * - * @param seconds Integer, default is 5 minutes. Must be greater than 0. + * @param seconds Integer, default is 10 minutes. Must be greater than 0. */ interval(seconds: number): void; } @@ -183,13 +183,14 @@ declare module angular.idle { timeout(seconds: number): void; /** - * When true, user activity will automatically interrupt the warning countdown and reset the - * idle state. If false, you will need to manually call watch() when you want to start - * watching for idleness again. + * When true or idle, user activity will automatically interrupt the warning countdown + * and reset the idle state. If false or off, you will need to manually call watch() + * when you want to start watching for idleness again. If notIdle, user activity will + * only automatically interrupt if the user is not yet idle. * - * @param enabled boolean, default is true + * @param enabled boolean or string, possible values: off/false, idle/true, or notIdle */ - autoResume(enabled: boolean): void; + autoResume(enabled: boolean | string): void; /** * When true, the Keepalive service is automatically stopped and started as needed.