forked from NervJS/taro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): align WebAudioContext.decodeAudioData signature with WeCh…
…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
- Loading branch information
Showing
1 changed file
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters