Skip to content

Commit

Permalink
Fix destructured params in subscribe function typescript declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Cuadra authored and plrthink committed Apr 1, 2020
1 parent 8490ea5 commit 7ea7771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ declare module 'react-native-zip-archive' {
export function unzip(source: string, target: string, charset?: string): Promise<string>;
export function unzipWithPassword(assetPath: string, target: string, password: string): Promise<string>;
export function unzipAssets(assetPath: string, target: string): Promise<string>;
export function subscribe(callback: ({ progress: number, filePath: string }) => void): NativeEventSubscription;
export function subscribe(callback: ({ progress, filePath }: { progress: number, filePath: string }) => void): NativeEventSubscription;
}

0 comments on commit 7ea7771

Please sign in to comment.