Skip to content

Commit 5ef9e14

Browse files
authored
Merge pull request #6 from tkow/feature/for_new_api_type_def
Feature/for new api type def
2 parents 7268548 + 2de502f commit 5ef9e14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ declare module 'react-native-document-picker' {
3737
interface DocumentPickerResponse {
3838
uri: string;
3939
type: string;
40-
fileName: string;
41-
fileSize: string;
40+
name: string;
41+
size: string;
4242
}
4343
type Platform = 'ios' | 'android' | 'windows'
4444
export default class DocumentPicker<OS extends keyof PlatformTypes = Platform> {
@@ -48,7 +48,7 @@ declare module 'react-native-document-picker' {
4848
): Promise<DocumentPickerResponse>;
4949
static pickMultiple<OS extends keyof PlatformTypes = Platform>(
5050
options: DocumentPickerOptions<OS>
51-
): Promise<DocumentPickerResponse>;
51+
): Promise<DocumentPickerResponse[]>;
5252
static isCancel<IError extends {code?: string}>(err?: IError): boolean;
5353
}
5454
}

0 commit comments

Comments
 (0)