Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
Update TypeScript definitions S3/Azure properties with default values…
Browse files Browse the repository at this point in the history
… to be optional (#1830)

Change from required to optional for certain properties that FineUploader automatically provides defaults
  • Loading branch information
jleider authored and singhjusraj committed May 13, 2017
1 parent 6246519 commit e4da435
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions client/typescript/fine-uploader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2650,7 +2650,7 @@ declare namespace FineUploader {
*
* @default `5242880`
*/
partSize: number;
partSize?: number;
}

/**
Expand All @@ -2662,7 +2662,7 @@ declare namespace FineUploader {
*
* @default `true`
*/
allowXdr: boolean;
allowXdr?: boolean;
}

/**
Expand Down Expand Up @@ -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.
*
Expand All @@ -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.
*
Expand All @@ -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.
*
Expand All @@ -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;
}

/**
Expand Down Expand Up @@ -3101,7 +3101,7 @@ declare namespace FineUploader {
*
* @default `true`
*/
allowXdr: boolean;
allowXdr?: boolean;
}

/**
Expand Down

0 comments on commit e4da435

Please sign in to comment.