UNPKG

@awesome-fe/translate

Version:
17 lines (16 loc) 710 B
import 'reflect-metadata'; import { FindManyOptions } from 'typeorm'; import { DictEntryEntity } from './dict-entry.entity'; export declare class Dict { private connection; private dictRepo; private regExps; open(filename?: string): Promise<void>; openInMemory(): Promise<void>; close(): Promise<void>; find(filePath: string, english: string): Promise<DictEntryEntity>; findAll(options?: FindManyOptions<DictEntryEntity>): Promise<DictEntryEntity[]>; createOrUpdate(filePath: string, english: string, chinese: string, xpath: string): Promise<DictEntryEntity>; save(entry: DictEntryEntity): Promise<DictEntryEntity>; findByRegExp(english: string): DictEntryEntity; }