Files
typebox/changelog/0.24.15.md
2023-03-22 01:01:38 +09:00

979 B

0.24.15

Added:

  • Conditional.Extends(...) This enables TypeBox to conditionally map types inline with TypeScripts structural equivalence checks. Tested against TypeScript 4.7.4.
  • Conditional.Extract(...) Which analogs TypeScripts Extract<...> utility type. Additional information here
  • Conditional.Exclude(...) Which analogs TypeScripts Exclude<...> utility type. Additional information here
  • Type.Parameters(...) Returns the parameters of a TFunction as a TTuple
  • Type.ReturnType(...) Returns the return type schema of a TFunction
  • Type.ConstructorParameters(...) Returns the parameters of a TConstructor as a TTuple
  • Type.InstanceType(...) Returns the instance type schema of a TConstructor