Skip to content

Commit 66778d5

Browse files
hengkxplrthink
authored andcommitted
fix typescript
1 parent d3128d6 commit 66778d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ declare module 'react-native-zip-archive' {
66
}
77
import { NativeEventSubscription } from 'react-native';
88
export function isPasswordProtected(source: string): Promise<boolean>;
9-
export function zip(source: string | [string], target: string): Promise<string>;
10-
export function zipWithPassword(source: string | [string], target: string, password: string, encryptionMethod?: encryptionMethods): Promise<string>;
9+
export function zip(source: string | string[], target: string): Promise<string>;
10+
export function zipWithPassword(source: string | string[], target: string, password: string, encryptionMethod?: encryptionMethods): Promise<string>;
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>;

0 commit comments

Comments
 (0)