From 7dd07f9271ed331461efa9cb7b11760ce9daf8c9 Mon Sep 17 00:00:00 2001 From: johnsonsu Date: Thu, 13 Jun 2024 12:22:54 -0400 Subject: [PATCH] Add asset functions to type def, version bump --- index.d.ts | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9d52912..5b72f4c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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*/ diff --git a/package.json b/package.json index d08db28..afa9da8 100644 --- a/package.json +++ b/package.json @@ -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",