From 464ec07fc30e9f900504e0d3ba509fcc3f4c1f47 Mon Sep 17 00:00:00 2001 From: Gertjan Reynaert Date: Tue, 10 Aug 2021 09:00:08 +0200 Subject: [PATCH] fix: TS make DocumentPickerResponse a single response --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index f0adbe0d..f18cf5a7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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]