Skip to content
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 d.ts to support typescript #14

Merged
merged 3 commits into from
Jun 21, 2018
Merged

Conversation

zhanba
Copy link
Contributor

@zhanba zhanba commented Jun 13, 2018

No description provided.

tiny-pinyin.d.ts Outdated
interface DICT {
PINYINS: string[]
UNIHANS: string[]
EXCEPTIONS: string[]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EXCEPTIONS 是对象

tiny-pinyin.d.ts Outdated
interface Patcher {
(DICT: DICT): void
}
export function isSupported(force: boolean): boolean
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

force 可选

tiny-pinyin.d.ts Outdated
source: string
target: string
}[]
export function convertToPinyin(str: string, separator: string, lowerCase: boolean): string
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separator 和 lowerCase 可选

@creeperyang creeperyang merged commit c6b3ba9 into creeperyang:master Jun 21, 2018
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.

2 participants