Skip to content

Commit 7268548

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/typescript/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DocumentPicker} from "react-native-document-picker";
1+
import DocumentPicker from "react-native-document-picker";
22

33
// Option is correct about pick
44

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare module 'react-native-document-picker' {
4141
fileSize: string;
4242
}
4343
type Platform = 'ios' | 'android' | 'windows'
44-
export class DocumentPicker<OS extends keyof PlatformTypes = Platform> {
44+
export default class DocumentPicker<OS extends keyof PlatformTypes = Platform> {
4545
static types: PlatformTypes['ios'] | PlatformTypes['android'] | PlatformTypes['windows']
4646
static pick<OS extends keyof PlatformTypes = Platform>(
4747
options: DocumentPickerOptions<OS>

0 commit comments

Comments
 (0)