Skip to content

Commit

Permalink
fix: TS make DocumentPickerResponse a single response (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
GertjanReynaert authored Aug 10, 2021
1 parent 768a5a5 commit 4c98593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import invariant from 'invariant'
import type { PlatformTypes, SupportedPlatforms } from './fileTypes'
import { perPlatformTypes } from './fileTypes'

export type DocumentPickerResponse = Array<{
export type DocumentPickerResponse = {
uri: string
fileCopyUri: string
copyError?: string
type: string
name: string
size: number
}>
}

export const types = perPlatformTypes[Platform.OS]

Expand Down

0 comments on commit 4c98593

Please sign in to comment.