Skip to content

Commit

Permalink
refactor: Dedupe CreateResumableUpload (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog authored Sep 6, 2023
1 parent c1d1b35 commit c3cb8ee
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,20 @@ export type PredefinedAcl =
| 'projectPrivate'
| 'publicRead';

export interface CreateResumableUploadOptions {
chunkSize?: number;
highWaterMark?: number;
metadata?: FileMetadata;
origin?: string;
offset?: number;
predefinedAcl?: PredefinedAcl;
private?: boolean;
public?: boolean;
uri?: string;
userProject?: string;
type PublicResumableUploadOptions =
| 'chunkSize'
| 'highWaterMark'
| 'metadata'
| 'origin'
| 'offset'
| 'predefinedAcl'
| 'private'
| 'public'
| 'uri'
| 'userProject';

export interface CreateResumableUploadOptions
extends Pick<resumableUpload.UploadConfig, PublicResumableUploadOptions> {
preconditionOpts?: PreconditionOptions;
}

Expand Down

0 comments on commit c3cb8ee

Please sign in to comment.