UNPKG

@anoki/fse-common

Version:

Common types for FSE

20 lines (19 loc) 569 B
import { WithMongooseProps } from './with-mongoose-props'; import { User } from './user'; import { GetValues, Languages } from '../constants'; export declare const TranslationsTypeEnum: { readonly APP: "app"; readonly BACKOFFICE: "backoffice"; }; export type TranslationType = GetValues<typeof TranslationsTypeEnum>; export type Translation = WithMongooseProps<{ updatedById?: string; updatedBy?: User; type: TranslationType; language: Languages; json: { [section: string]: { [key: string]: string; }; }; }>;