Skip to content

Commit

Permalink
Add asset functions to type def, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonsu committed Jun 13, 2024
1 parent b3591bd commit 7dd07f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ declare module "react-native-sound-player" {
loadSoundFile: (name: string, type: string) => void;
playUrl: (url: string) => void;
loadUrl: (url: string) => void;
playAsset: (asset: number) => void;
loadAsset: (asset: number) => void;
/** @deprecated please use addEventListener*/
onFinishedPlaying: (callback: (success: boolean) => unknown) => void;
/** @deprecated please use addEventListener*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-sound-player",
"version": "0.14.2",
"version": "0.14.3",
"description": "Play or stream audio files in ReactNative on iOS/Android",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 7dd07f9

Please sign in to comment.