diff --git a/src/cldFactory.ts b/src/cldFactory.ts index 6bbbcae..550a422 100644 --- a/src/cldFactory.ts +++ b/src/cldFactory.ts @@ -1,6 +1,6 @@ import { LanguageResult } from './cldAsmModule'; -export interface LanguageIdentifier { +interface LanguageIdentifier { /** * Finds the most likely language for the given text, along with additional * information (e.g., probability). The prediction is based on the first N @@ -48,4 +48,4 @@ interface CldFactory { create(minBytes?: number, maxBytes?: number): LanguageIdentifier; } -export { CldFactory }; +export { LanguageIdentifier, CldFactory }; diff --git a/src/index.ts b/src/index.ts index de5df0d..2df01d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ export { loadModule } from './loadModule'; export { log, enableLogger } from './util/logger'; export { ENVIRONMENT } from 'emscripten-wasm-loader'; +export { LanguageIdentifier, CldFactory } from './cldFactory'; +export { LanguageResult } from './cldAsmModule';