From c97b8a85018319e414bc76e7231f31eb9ef4739d Mon Sep 17 00:00:00 2001 From: Roland Kakonyi Date: Wed, 13 Dec 2023 14:47:55 +0100 Subject: [PATCH] fix: currentTime mode handling as it was marked optional, while we only accept one of two values --- src/player.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player.ts b/src/player.ts index 334a565b..3ba480ba 100644 --- a/src/player.ts +++ b/src/player.ts @@ -192,7 +192,9 @@ export class Player extends NativeInstance { * * @param mode - The time mode to specify: an absolute UNIX timestamp ('absolute') or relative time ('relative'). */ - getCurrentTime = async (mode?: 'relative' | 'absolute'): Promise => { + getCurrentTime = async ( + mode: 'relative' | 'absolute' = 'absolute' + ): Promise => { return PlayerModule.currentTime(this.nativeId, mode); };