From 62da0e60efc62bfda4a63c3736fcb25af10372b1 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 3 May 2018 18:05:48 +0200 Subject: [PATCH] angular-translate: Add optional fn parameter to onReady (#25477) * Add optional fn parameter on onReady This callback is executed if provided when the $translate service is ready. * Add Gabriel Gil to angular-translate definitors --- types/angular-translate/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/angular-translate/index.d.ts b/types/angular-translate/index.d.ts index aaa999e8ad..719fcb5d5c 100644 --- a/types/angular-translate/index.d.ts +++ b/types/angular-translate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular Translate (pascalprecht.translate module) 2.15 // Project: https://github.com/PascalPrecht/angular-translate -// Definitions by: Michel Salib +// Definitions by: Michel Salib , Gabriel Gil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -67,7 +67,7 @@ declare module 'angular' { versionInfo(): string; loaderCache(): any; isReady(): boolean; - onReady(): angular.IPromise; + onReady(fn?: () => void): angular.IPromise; resolveClientLocale(): string; getAvailableLanguageKeys(): string[]; }