Skip to content

Commit 97d8b90

Browse files
jon-moreiraplrthink
authored andcommitted
Fix subscribe function typescript definition
1 parent 5d1ab2d commit 97d8b90

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, passowrd: string): Promise<string>;
1313
export function unzipAssets(assetPath: string, target: string): Promise<string>;
14-
export function subscribe(callback: ({ progress: number, filePath: string })): NativeEventSubscription;
14+
export function subscribe(callback: ({ progress: number, filePath: string }) => void): NativeEventSubscription;
1515
}

0 commit comments

Comments
 (0)