RenaiApp/src/renderer/store/repositories/entities/language-repository.ts

6 lines
300 B
TypeScript

import { entityApi } from '../../../services/api';
import { EntityRepository, EntityRepositoryInterface } from '../entity-repository';
export const languageRepository: EntityRepositoryInterface<LanguageSerializedInterface, LangCode> =
new EntityRepository((code) => entityApi.readLanguage(code));