japanese-db
Version:
Generate Japanese dictionary SQLite database from open source materials
35 lines (34 loc) • 924 B
TypeScript
export class JMnedictUtil {
/**
* @param {string} path
*/
constructor(path: string, shortEntities?: boolean);
/** @type {string} */
dictDate: string;
/** @type {string} */
data: string;
jmnedictObj: any;
jmnedictEntries: import("./types/jmnedict").entry[];
/** @type {Object<string, string>} */
entities: {
[x: string]: string;
};
/**
* Load JMnedict file
* @param {string} path
* @param {boolean} shortEntities
* If true, the entities will be the short version.
* @returns {void}
*/
load(path: string, shortEntities?: boolean): void;
/**
* Get JMnedict Entries
* @returns {JMnedict.entry[]}
*/
getJMnedictEntries(): JMnedict.entry[];
}
declare namespace JMnedict {
export type JMnedict = import("./types/jmnedict").JMnedict;
export type entry = import("./types/jmnedict").entry;
}
export {};