Skip to content

Commit 7ea7771

Browse files
Tony Cuadraplrthink
authored andcommitted
Fix destructured params in subscribe function typescript declaration.
1 parent 8490ea5 commit 7ea7771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ declare module 'react-native-zip-archive' {
1111
export function unzip(source: string, target: string, charset?: string): Promise<string>;
1212
export function unzipWithPassword(assetPath: string, target: string, password: string): Promise<string>;
1313
export function unzipAssets(assetPath: string, target: string): Promise<string>;
14-
export function subscribe(callback: ({ progress: number, filePath: string }) => void): NativeEventSubscription;
14+
export function subscribe(callback: ({ progress, filePath }: { progress: number, filePath: string }) => void): NativeEventSubscription;
1515
}

0 commit comments

Comments
 (0)