@smithy/types
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export type Transform<T, FromType, ToType> = ConditionalRecursiveTransformExact<T, FromType, ToType>; | ||
export type Transform<T, FromType, ToType> = RecursiveTransformExact<T, FromType, ToType>; | ||
/** | ||
@@ -40,19 +40,4 @@ * @internal | ||
T[key] | ||
] ? ToType : ConditionalRecursiveTransformExact<T[key], FromType, ToType> : ConditionalRecursiveTransformExact<T[key], FromType, ToType>; | ||
] ? ToType : RecursiveTransformExact<T[key], FromType, ToType> : RecursiveTransformExact<T[key], FromType, ToType>; | ||
} : TransformExact<T, FromType, ToType>; | ||
/** | ||
* @internal | ||
* | ||
* Same as RecursiveTransformExact but does not assign to an object | ||
* unless there is a matching transformed member. | ||
*/ | ||
type ConditionalRecursiveTransformExact<T, FromType, ToType> = [ | ||
T | ||
] extends [ | ||
RecursiveTransformExact<T, FromType, ToType> | ||
] ? [ | ||
RecursiveTransformExact<T, FromType, ToType> | ||
] extends [ | ||
T | ||
] ? T : RecursiveTransformExact<T, FromType, ToType> : RecursiveTransformExact<T, FromType, ToType>; | ||
export {}; |
{ | ||
"name": "@smithy/types", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"scripts": { | ||
@@ -9,3 +9,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", | ||
"build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4 && node scripts/downlevel", | ||
"stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
@@ -12,0 +12,0 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", |
187504
187
5141