hexenq / kuroshiro

Japanese language library for converting Japanese sentence to Hiragana, Katakana or Romaji with furigana and okurigana modes supported.
https://kuroshiro.org
MIT License
837 stars 94 forks source link

[TS] Could not find a declaration file for module 'kuroshiro'. #79

Closed hykilpikonna closed 3 years ago

hykilpikonna commented 3 years ago

On the official npm page, it says that TypeScript is supported:

image

But when I copy the import statement into my project, it prompted that there are no type declarations for the library, and the package @types/kuroshiro doesn't exist.

When I checked the source code, it does appear that there are no type declarations. Did I miss something?

image

Rhodanthe1116 commented 3 years ago

The document you look on the npm page may be version < 1. The typescript definitions are no longer available. See #48

hykilpikonna commented 3 years ago

The document you look on the npm page may be version < 1. The typescript definitions are no longer available. See #48

Thanks for the info!