|
|
@@ -1,18 +1,30 @@ |
|
|
|
import * as KanjidicImpl from './sources/kanjidic'; |
|
|
|
import * as JmdictImpl from './sources/jmdict'; |
|
|
|
import * as JMdictImpl from './sources/jmdict'; |
|
|
|
import * as JMnedictImpl from './sources/jmnedict'; |
|
|
|
import * as RadKFileImpl from './sources/radkfile'; |
|
|
|
import * as KRadFileImpl from './sources/kradfile'; |
|
|
|
|
|
|
|
const SUPPORTED_SOURCES = [ |
|
|
|
KanjidicImpl, |
|
|
|
JmdictImpl, |
|
|
|
JMdictImpl, |
|
|
|
JMnedictImpl, |
|
|
|
RadKFileImpl, |
|
|
|
KRadFileImpl, |
|
|
|
] as const; |
|
|
|
|
|
|
|
export type CreateDownloaderParams = ( |
|
|
|
KanjidicImpl.CreateDownloaderParams |
|
|
|
| JmdictImpl.CreateDownloaderParams |
|
|
|
| JMdictImpl.CreateDownloaderParams |
|
|
|
| JMnedictImpl.CreateDownloaderParams |
|
|
|
| RadKFileImpl.CreateDownloaderParams |
|
|
|
| KRadFileImpl.CreateDownloaderParams |
|
|
|
); |
|
|
|
|
|
|
|
export * as Kanjidic from './sources/kanjidic'; |
|
|
|
export * as Jmdict from './sources/jmdict'; |
|
|
|
export * as JMdict from './sources/jmdict'; |
|
|
|
export * as JMnedict from './sources/jmnedict'; |
|
|
|
export * as RadKFile from './sources/radkfile'; |
|
|
|
export * as KRadFile from './sources/kradfile'; |
|
|
|
export * from './streams'; |
|
|
|
|
|
|
|
export const createDownloader = (params: CreateDownloaderParams) => { |
|
|
|