Skip to content

Commit

Permalink
Merge pull request #218 from tkow/feature/for_new_api_type_def
Browse files Browse the repository at this point in the history
Feature/for new api type def
  • Loading branch information
Elyx0 authored Jul 19, 2019
2 parents 6b4793e + 2de502f commit cffcdab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ declare module 'react-native-document-picker' {
interface DocumentPickerResponse {
uri: string;
type: string;
fileName: string;
fileSize: string;
name: string;
size: string;
}
type Platform = 'ios' | 'android' | 'windows'
export default class DocumentPicker<OS extends keyof PlatformTypes = Platform> {
Expand All @@ -48,7 +48,7 @@ declare module 'react-native-document-picker' {
): Promise<DocumentPickerResponse>;
static pickMultiple<OS extends keyof PlatformTypes = Platform>(
options: DocumentPickerOptions<OS>
): Promise<DocumentPickerResponse>;
): Promise<DocumentPickerResponse[]>;
static isCancel<IError extends {code?: string}>(err?: IError): boolean;
}
}

0 comments on commit cffcdab

Please sign in to comment.