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
This commit is contained in:
Gabriel
2018-05-03 09:05:48 -07:00
committed by Andy
parent f3bbaa60f2
commit 62da0e60ef
+2 -2
View File
@@ -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 <https://github.com/michelsalib>
// Definitions by: Michel Salib <https://github.com/michelsalib>, Gabriel Gil <https://github.com/GabrielGil>
// 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<void>;
onReady(fn?: () => void): angular.IPromise<void>;
resolveClientLocale(): string;
getAvailableLanguageKeys(): string[];
}