-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro.WebAudioContext.decodeAudioData API 函数签名错误,实现方法不明确 #17080
Comments
BH4HPA
added a commit
to BH4HPA/taro
that referenced
this issue
Dec 25, 2024
…at docs Updated the `decodeAudioData` method in `WebAudioContext` to match the official WeChat Mini Program documentation: - Modified the return type to `Promise<AudioBuffer>` instead of `AudioBuffer`, because of this method' actual response. - Adjusted method parameters to accept `audioData`, `successCallback`, and `errorCallback`. This fixes the TypeScript error and aligns the implementation with the expected API behavior. Closes NervJS#17080
18 tasks
BH4HPA
added a commit
to BH4HPA/taro
that referenced
this issue
Dec 25, 2024
…p docs Updated the `decodeAudioData` method in `WebAudioContext` to match the official WeChat Mini Program documentation: - Modified the return type to `Promise<AudioBuffer>` instead of `AudioBuffer`, because of this method' actual response. - Adjusted method parameters to accept `audioData`, `successCallback`, and `errorCallback`. This fixes the TypeScript error and aligns the implementation with the expected API behavior. Closes NervJS#17080
This was referenced Dec 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/BH4HPA/taro-app-demo-decode-audio-data.git
小程序基础库: 3.7.2
使用框架: React
复现步骤
@ts-expect-error
看 TypeScript 编译器报错期望结果
实际结果
Promise<AudioBuffer>
对象测试代码
测试结果
环境信息
The text was updated successfully, but these errors were encountered: