* Fix #8985

* Update definition of ITranslationTable to support namespace (#2433)
This commit is contained in:
Thanh H
2016-07-23 19:57:56 -07:00
committed by Mohamed Hegazy
parent 71f47713ff
commit 63f86fc065
+2 -2
View File
@@ -13,7 +13,7 @@ declare module "angular-translate" {
declare namespace angular.translate {
interface ITranslationTable {
[key: string]: any;
[key: string]: string | ITranslationTable;
}
interface ILanguageKeyAlias {
@@ -96,7 +96,7 @@ declare namespace angular.translate {
storageKey(): string;
storageKey(key: string): void; // JeroMiya - the library should probably return ITranslateProvider but it doesn't here
useUrlLoader(url: string): ITranslateProvider;
useStaticFilesLoader(options: IStaticFilesLoaderOptions): ITranslateProvider;
useStaticFilesLoader(options: IStaticFilesLoaderOptions | { files: IStaticFilesLoaderOptions[] }): ITranslateProvider;
useLoader(loaderFactory: string, options?: any): ITranslateProvider;
useLocalStorage(): ITranslateProvider;
useCookieStorage(): ITranslateProvider;