mirror of https://github.com/abpframework/abp.git
2 changed files with 15 additions and 0 deletions
@ -1,2 +1,3 @@ |
|||
export * from './list.token'; |
|||
export * from './locale-error-handler.token'; |
|||
export * from './options.token'; |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
import { InjectionToken, Injector } from '@angular/core'; |
|||
|
|||
export interface LocaleErrorHandlerData { |
|||
resolve: any; |
|||
reject: any; |
|||
error: any; |
|||
locale: string; |
|||
storedLocales: Record<string, any>; |
|||
injector: Injector; |
|||
} |
|||
|
|||
export const LOCALE_ERROR_HANDLER = new InjectionToken<(data: LocaleErrorHandlerData) => any>( |
|||
'LOCALE_ERROR_HANDLER', |
|||
); |
|||
Loading…
Reference in new issue