Skip to content

Commit

Permalink
Composite Evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 authored Mar 23, 2023
1 parent e16fceb commit 4ae9125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions changelog/0.26.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.

0 comments on commit 4ae9125

Please sign in to comment.