Skip to content

Conversation

@artemkosenko
Copy link
Contributor

Typescript support

Typescript support
WaveformData => WaveformDataType
Copy link
Member

@chrisn chrisn left a 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)
@artemkosenko
Copy link
Contributor Author

Thank you for your comments!
I removed all inconsistencies, added missing declarations, and updated module's exports.

AudioWaveForm => AudioWaveform
rename: AudioWaveform => JsonWaveformData (to keep the name consistent with peeks.js)
@chrisn
Copy link
Member

chrisn commented Feb 21, 2020

Thanks! I'll merge this and do some tests.

@chrisn chrisn merged commit 979ac60 into bbc:master Feb 21, 2020
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