Skip to content

Commit afd901d

Browse files
authored
Merge pull request #130 from sunnylqm/patch-1
Add index.d.ts
2 parents 58200f9 + 1982f2b commit afd901d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
declare module 'react-native-zip-archive' {
2+
import { NativeEventSubscription } from 'react-native';
3+
export function zip(source: string, target: string): Promise<string>;
4+
export function unzip(source: string, target: string): Promise<string>;
5+
export function unzipWithPassword(assetPath: string, target: string, passowrd: string): Promise<string>;
6+
export function unzipAssets(assetPath: string, target: string): Promise<string>;
7+
export function subscribe(callback: ({ progress: number, filePath: string })): NativeEventSubscription;
8+
}

0 commit comments

Comments
 (0)