Skip to content

Conversation

CorentinTh
Copy link

@CorentinTh CorentinTh commented Jun 26, 2025

The package exports the languages record (in src/index.js) but this export is not reflected in the typescript declaration file, so in TS projects we get a Module '"tesseract.js"' has no exported member 'languages'.ts(2305) error

image

So this PR adds a declaration for languages in src/index.d.ts

Closes #887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing "languages" attributes on default export
1 participant