Skip to content

Commit

Permalink
fix(parameters): return type when options without transform is used (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi authored Sep 4, 2023
1 parent 858d2f2 commit b2fe341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/parameters/src/types/AppConfigProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ type AppConfigGetOutput<
InferredFromOptionsType = undefined
> = undefined extends ExplicitUserProvidedType
? undefined extends InferredFromOptionsType | AppConfigGetOptionsTransformNone
? Uint8Array
: InferredFromOptionsType extends AppConfigGetOptionsTransformNone
? Uint8Array
: InferredFromOptionsType extends AppConfigGetOptionsTransformBinary
? string
Expand Down
4 changes: 3 additions & 1 deletion packages/parameters/src/types/SecretsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ type SecretsGetOutput<
ExplicitUserProvidedType = undefined,
InferredFromOptionsType = undefined
> = undefined extends ExplicitUserProvidedType
? undefined extends InferredFromOptionsType | SecretsGetOptionsTransformNone
? undefined extends InferredFromOptionsType
? string | Uint8Array
: InferredFromOptionsType extends SecretsGetOptionsTransformNone
? string | Uint8Array
: InferredFromOptionsType extends SecretsGetOptionsTransformBinary
? string
Expand Down

0 comments on commit b2fe341

Please sign in to comment.