From 5a3de4bafd4a95eb5b2158becadcca098bf25c16 Mon Sep 17 00:00:00 2001 From: Andre Bahtiar Fauzi Date: Thu, 28 Sep 2023 08:09:55 +0700 Subject: [PATCH] Fix typescript declaration (index.d.ts) (#71) --- index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d8bc5b9..71ba8d9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1 +1,7 @@ -export default function convert(url: string): string; +declare module 'react-native-video-cache' { + function convert(url: string): string; + function convertAsync(url: string): Promise; + + export default convert; + export const convertAsync; +}