From 4ae9125b5503ec2e804334f7bcebe0d5d8d179de Mon Sep 17 00:00:00 2001 From: sinclairzx81 Date: Fri, 24 Mar 2023 07:18:57 +0900 Subject: [PATCH] Composite Evaluate --- changelog/0.26.2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/0.26.2.md b/changelog/0.26.2.md index 4e04680..052f4bd 100644 --- a/changelog/0.26.2.md +++ b/changelog/0.26.2.md @@ -32,7 +32,7 @@ As such, 0.26.2 reverts back to the 0.25.0 interpretation, but applies type mapp { // evaluation case 4: all optional type T = { a?: number } & { a?: number } - type C = {[K in keyof T]: T[K] } // type C = { a: number | undefined } + type C = {[K in keyof T]: T[K] } // type C = { a?: number | undefined } } ``` -Note: the Type.Composite is intended to be a temporary type which can be replaced with a more general `Type.Mapped` in future revisions of TypeBox. As the infrastructure to support mapped types does not exist, users can use Type.Composite to partially replicate mapped type evaluation for composited object types only. \ No newline at end of file +Note: the Type.Composite is intended to be a temporary type which can be replaced with a more general `Type.Mapped` in future revisions of TypeBox. As the infrastructure to support mapped types does not exist, users can use Type.Composite to partially replicate mapped type evaluation for composited object types only.