Skip to content

Commit 8ca96a7

Browse files
committed
feat: export AudioPlayerPlugin types
1 parent f479f70 commit 8ca96a7

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/components/AudioPlayer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './plugins';
12
export {
23
useAudioPlayer,
34
type UseAudioPlayerProps,

src/components/AudioPlayer/plugins/AudioPlayerPlugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export type AudioPlayerPluginContext = {
77
export type AudioPlayerPlugin = {
88
id: string;
99
onInit?(ctx: AudioPlayerPluginContext): void;
10-
onSeek?(ctx: AudioPlayerPluginContext & { secondsElapsed: number }): void;
1110
onError?(ctx: AudioPlayerPluginContext & RegisterAudioPlayerErrorParams): void;
1211
onRemove?(ctx: AudioPlayerPluginContext): void;
1312
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './AudioPlayerPlugin';

0 commit comments

Comments
 (0)