-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add types #93
base: dev
Are you sure you want to change the base?
Add types #93
Conversation
1.0.0-rc.1
docs: fix doc style
docs: update docs
build: update package.json
docs: fix spelling mistake
docs: update doc
docs: update docs
build: release 1.0.0
update to version 1.1.0
docs: fix internal links in docs
docs: update docs
[1.1.1] Handle invalid parameter when initializing kuroshiro
Update to version 1.1.2
docs: update CONTRIBUTING.md
docs: update README
docs: update docs
* upgrade to babel 7 * attempt to fix errors occurring when converting っ to romaji (hexenq#61) * fix: wrong regex pattern fixed * build: bump deps * build(npm): add husky and lint-staged for pre-commit check * Esperanto docs (hexenq#71) * Update docs * add ready to use code in readme (hexenq#77) * build: bump deps Co-authored-by: Omar Diab <[email protected]> Co-authored-by: erdOne <[email protected]> Co-authored-by: bbible3 <[email protected]> Co-authored-by: Richard Osmar Leon Ingaruca <[email protected]>
This is great PR, but it seems the repository owner has been inactive for a while. Can this PR be opened to DefinitelyTyped instead? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Only thing I can suggest is to limit these types which appear to have discrete values in the implementation 🚀
convert( | ||
str: string, | ||
options?: { | ||
to?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to?: string; | |
to?: 'hiragana' | 'katakana' | 'romaji'; |
mode?: string; | ||
romajiSystem?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mode?: string; | |
romajiSystem?: string; | |
mode?: 'normal' | 'spaced' | 'okurigana' | 'furigana'; | |
romajiSystem?: 'nippon' | 'passport' | 'hepburn'; |
when this PR will be merged? |
Thank you for creating nice library.
I'm trying to use this library for my TypeScript project, but it needs declaration (.d.ts) file.
I saw below issue, but nobody has dealt with it, so I added.
#48
Also, please refer to this pull request. hexenq/kuroshiro-analyzer-kuromoji#7
If "kuroshiro" user uses "kuroshiro-analyzer-kuromoji", needs types as well.
Thank you.