From 1982f2b96b714063b1a20328ed6abee6cc0d82bb Mon Sep 17 00:00:00 2001 From: Sunny Luo Date: Tue, 7 May 2019 11:56:34 +0800 Subject: [PATCH] Add index.d.ts --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..68ee681 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,8 @@ +declare module 'react-native-zip-archive' { + import { NativeEventSubscription } from 'react-native'; + export function zip(source: string, target: string): Promise; + export function unzip(source: string, target: string): Promise; + export function unzipWithPassword(assetPath: string, target: string, passowrd: string): Promise; + export function unzipAssets(assetPath: string, target: string): Promise; + export function subscribe(callback: ({ progress: number, filePath: string })): NativeEventSubscription; +}