Skip to content

Commit

Permalink
Merge pull request #130 from sunnylqm/patch-1
Browse files Browse the repository at this point in the history
Add index.d.ts
  • Loading branch information
plrthink authored May 7, 2019
2 parents 58200f9 + 1982f2b commit afd901d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'react-native-zip-archive' {
import { NativeEventSubscription } from 'react-native';
export function zip(source: string, target: string): Promise<string>;
export function unzip(source: string, target: string): Promise<string>;
export function unzipWithPassword(assetPath: string, target: string, passowrd: string): Promise<string>;
export function unzipAssets(assetPath: string, target: string): Promise<string>;
export function subscribe(callback: ({ progress: number, filePath: string })): NativeEventSubscription;
}

0 comments on commit afd901d

Please sign in to comment.