add 'end' event to minio-js BucketStream (#35990)

'Stream' has 'end' event, but its not listed on the types.
It is added now.
This commit is contained in:
Kanagaraj M 2019-06-06 23:48:06 +05:30 committed by Andrew Casey
parent d0ba8d6550
commit 2ba9ea4f64

View File

@ -62,6 +62,7 @@ export interface IncompleteUploadedBucketItem {
export interface BucketStream<T> extends Stream {
on(event: 'data', listener: (item: T) => void): this;
on(event: 'error', listener: (error: Error) => void): this;
on(event: 'end', listener: () => void): this;
}
export interface PostPolicyResult {