-
Notifications
You must be signed in to change notification settings - Fork 108
added index.d.ts #66
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
added index.d.ts #66
Conversation
Typescript support
WaveformData => WaveformDataType
chrisn
left a comment
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.
Thank you for contributing! Typescript declarations are a great addition. I left a few minor comments, please take a look.
length, bits, duration, pixels_per_second, channels, sample_rate, scale are set as readonly min_array and max_array do not take parameters 'concat' method declaration updated 'create' static method declaration updated added AudioWaveform type declaration added 'createFromAudio' static method (+ corresponding types)
|
Thank you for your comments! |
AudioWaveForm => AudioWaveform
rename: AudioWaveform => JsonWaveformData (to keep the name consistent with peeks.js)
|
Thanks! I'll merge this and do some tests. |
Typescript support