-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage] Rename options types to be consistent #5650
Conversation
@@ -565,7 +565,7 @@ export interface UploadToAzureFileOptions extends CommonOptions { | |||
* If not provided, 5 concurrency will be used by default. | |||
* | |||
* @type {number} | |||
* @memberof UploadToAzureFileOptions | |||
* @memberof FileParallelUploadOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For types having a concurrency field I add Parallel in their names.
*/ | ||
progress?: (progress: TransferProgressEvent) => void; | ||
} | ||
/** | ||
* Option interface for BlockBlobClient.uploadFile() and BlockBlobClient.uploadSeekableStream(). | ||
* | ||
* @export | ||
* @interface UploadToBlockBlobOptions | ||
* @interface BlobDownloadToBufferOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlockBlobParallelUploadOptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no I messed it up
*/ | ||
abortSignal?: AbortSignalLike; | ||
|
||
/** | ||
* Destination block blob size in bytes. | ||
* | ||
* @type {number} | ||
* @memberof UploadToBlockBlobOptions | ||
* @memberof BlobDownloadToBufferOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlockBlobParallelUploadOptions and same below in this interface
@@ -619,15 +619,15 @@ export interface BlobSetTierOptions extends CommonOptions { | |||
* Option interface for BlobClient.downloadToBuffer(). | |||
* | |||
* @export | |||
* @interface DownloadFromBlobOptions | |||
* @interface BlobDownloadToBufferOptionsOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trivial Options in the end.
/** | ||
* An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation. | ||
* For example, use the @azure/abort-controller to create an `AbortSignal`. | ||
* | ||
* @type {AbortSignalLike} | ||
* @memberof DownloadFromBlobOptions | ||
* @memberof BlobDownloadToBufferOptionsOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trivial Options in the end, same below in this interface
@@ -1457,14 +1457,14 @@ export class BlobClient extends StorageClient { | |||
* @param {Buffer} buffer Buffer to be fill, must have length larger than count | |||
* @param {number} offset From which position of the block blob to download(in bytes) | |||
* @param {number} [count] How much data(in bytes) to be downloaded. Will download to the end when passing undefined | |||
* @param {DownloadFromBlobOptions} [options] DownloadFromBlobOptions | |||
* @param {BlobDownloadToBufferOptions} [options] BlobDownloadToBufferOptionsOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect, trivial Options in the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
alright should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the high-level functions were moved into clients, their options type name were not updated. This change renames them to be consistent with other options types. Resolves Azure#5648
538ef32
to
ea66bf3
Compare
When the high-level functions were moved into clients, their options type name
were not updated. This change renames them to be consistent with other options
types.
Resolves #5648