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 weap…
…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
- Loading branch information