UNPKG

@anoki/fse-common

Version:

Common types for FSE

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