All files / nestjs-i18n/dist/interfaces i18n-options.interface.d.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                       
import { Type } from '@nestjs/common';
import { ModuleMetadata } from '@nestjs/common/interfaces';
import { I18nResolver } from './i18n-language-resolver.interface';
export declare type ResolverWithOptions = {
    use: Type<I18nResolver>;
    options: any;
};
export declare type I18nOptionsWithoutResolvers = Omit<I18nOptions, 'resolvers'>;
export declare type I18nOptionResolver = ResolverWithOptions | Type<I18nResolver> | I18nResolver;
export interface I18nOptions {
    path: string;
    fallbackLanguage: string;
    filePattern?: string;
    resolvers?: I18nOptionResolver[];
    saveMissing?: boolean;
}
export interface I18nOptionsFactory {
    createI18nOptions(): Promise<I18nOptionsWithoutResolvers> | I18nOptionsWithoutResolvers;
}
export interface I18nAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
    name?: string;
    useExisting?: Type<I18nOptionsFactory>;
    useClass?: Type<I18nOptionsFactory>;
    useFactory?: (...args: any[]) => Promise<I18nOptionsWithoutResolvers> | I18nOptionsWithoutResolvers;
    resolvers?: I18nOptionResolver[];
    inject?: any[];
}