From e4da4358567b24aa22baa89c88e715db13354c49 Mon Sep 17 00:00:00 2001 From: Justin Leider Date: Sat, 13 May 2017 12:42:59 -0400 Subject: [PATCH] Update TypeScript definitions S3/Azure properties with default values to be optional (#1830) Change from required to optional for certain properties that FineUploader automatically provides defaults --- client/typescript/fine-uploader.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/typescript/fine-uploader.d.ts b/client/typescript/fine-uploader.d.ts index 81e9b6f6e..57c61c55b 100644 --- a/client/typescript/fine-uploader.d.ts +++ b/client/typescript/fine-uploader.d.ts @@ -2650,7 +2650,7 @@ declare namespace FineUploader { * * @default `5242880` */ - partSize: number; + partSize?: number; } /** @@ -2662,7 +2662,7 @@ declare namespace FineUploader { * * @default `true` */ - allowXdr: boolean; + allowXdr?: boolean; } /** @@ -2708,7 +2708,7 @@ declare namespace FineUploader { * * @default `'private'` */ - acl: string; + acl?: string; /** * Describes the name of the bucket used to house the file in S3. * @@ -2720,7 +2720,7 @@ declare namespace FineUploader { * * @default `(assumes the bucket can be determined by parsing the endpoint string)` */ - bucket: string | BucketFunction; + bucket?: string | BucketFunction; /** * The hostname of your S3 bucket. * @@ -2732,7 +2732,7 @@ declare namespace FineUploader { * * @default `(uses the request endpoint to determine the hostname)` */ - host: string | HostFunction; + host?: string | HostFunction; /** * Describes the object key used to identify the file in your S3 bucket. * @@ -2743,25 +2743,25 @@ declare namespace FineUploader { * * @default `'uuid'` */ - key: string | KeyFunction; + key?: string | KeyFunction; /** * Set this to true if you would like to use the reduced redundancy storage class for all objects uploaded to S3 * * @default `false` */ - reducedRedundancy: boolean; + reducedRedundancy?: boolean; /** * Version 4 signatures only: The S3 region identifier for the target bucket * * @default `'us-east-1'` */ - region: string; + region?: string; /** * Set this to true if you would like all uploaded files to be encrypted by AWS * * @default `false` */ - serverSideEncryption: boolean; + serverSideEncryption?: boolean; } /** @@ -3101,7 +3101,7 @@ declare namespace FineUploader { * * @default `true` */ - allowXdr: boolean; + allowXdr?: boolean; } /**