From 256ab138064dd3ec64145982d52f68753055bfb9 Mon Sep 17 00:00:00 2001 From: fnwiya Date: Thu, 30 Aug 2018 10:19:17 +0900 Subject: [PATCH] Add tyle declare file --- index.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..e4504bbf --- /dev/null +++ b/index.d.ts @@ -0,0 +1,23 @@ +declare module 'react-native-aws3' { + interface File { + uri: string + name: string + type: string + } + + interface Options { + acl?: string + keyPrefix?: string + bucket: string + region: string + accessKey: string + secretKey: string + successActionStatus?: number + awsUrl?: string + timeDelta?: number + } + + export class RNS3 { + put(file: File, option: Options) + } +}