Skip to content

Commit

Permalink
fix: onAudioPlayTrackChange type
Browse files Browse the repository at this point in the history
onAudioPlayTrackChange typ was not reflecting the reality, which trigger a TS error in IDEs.
  • Loading branch information
Karnak19 committed Feb 6, 2021
1 parent 66a7eb1 commit 14dddf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReactJkMusicPlayerAudioListProps>,
audioInfo: ReactJkMusicPlayerAudioInfo,
) => void
onAudioListsDragEnd?: (
currentPlayId: string,
audioLists: Array<ReactJkMusicPlayerAudioListProps>,
Expand Down

0 comments on commit 14dddf4

Please sign in to comment.