From 14dddf46ff58cf061a86eb72e30ad26ceb6b0b24 Mon Sep 17 00:00:00 2001 From: Basile Vernouillet Date: Sat, 6 Feb 2021 15:29:10 +0100 Subject: [PATCH] fix: onAudioPlayTrackChange type onAudioPlayTrackChange typ was not reflecting the reality, which trigger a TS error in IDEs. --- index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d8a97863..62881596 100644 --- a/index.d.ts +++ b/index.d.ts @@ -169,7 +169,11 @@ export interface ReactJkMusicPlayerProps { onPlayModeChange?: (playMode: ReactJkMusicPlayerPlayMode) => void onModeChange?: (mode: ReactJkMusicPlayerMode) => void onAudioListsPanelChange?: (panelVisible: boolean) => void - onAudioPlayTrackChange?: (fromIndex: number, endIndex: number) => void + onAudioPlayTrackChange?: ( + currentPlayId: string, + audioLists: Array, + audioInfo: ReactJkMusicPlayerAudioInfo, + ) => void onAudioListsDragEnd?: ( currentPlayId: string, audioLists: Array,