@aws-sdk/types 3.198.0 → 3.200.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **types:** extends check of generic in WithSdkStreamMixin ([#4119](https://github.com/aws/aws-sdk-js-v3/issues/4119)) ([299d245](https://github.com/aws/aws-sdk-js-v3/commit/299d245f63a69324bb973e28be79c055359c4d69))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
7
18
 
8
19
 
@@ -76,12 +76,12 @@ export interface SdkStreamMixin {
76
76
  */
77
77
  export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
78
78
  /**
79
- * Indicates that any members of type T
80
- * that were of type T[StreamKey] have been extended
79
+ * Indicates that the member of type T with
80
+ * key StreamKey have been extended
81
81
  * with the SdkStreamMixin helper methods.
82
82
  */
83
83
  export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
84
- [key in keyof T]: T[key] extends T[StreamKey] ? SdkStream<T[StreamKey]> : T[key];
84
+ [key in keyof T]: key extends StreamKey ? SdkStream<T[StreamKey]> : T[key];
85
85
  };
86
86
  /**
87
87
  * Interface for internal function to inject stream utility functions
@@ -39,9 +39,7 @@ export interface SdkStreamMixin {
39
39
  }
40
40
  export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
41
41
  export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
42
- [key in keyof T]: T[key] extends T[StreamKey]
43
- ? SdkStream<T[StreamKey]>
44
- : T[key];
42
+ [key in keyof T]: key extends StreamKey ? SdkStream<T[StreamKey]> : T[key];
45
43
  };
46
44
  export interface SdkStreamMixinInjector {
47
45
  (stream: unknown): SdkStreamMixin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.198.0",
3
+ "version": "3.200.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",