@sinclair/typebox 0.24.37 → 0.24.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/typebox.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.24.37",
3
+ "version": "0.24.38",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
package/typebox.d.ts CHANGED
@@ -104,7 +104,7 @@ export declare type IntersectEvaluate<T extends readonly TSchema[], P extends un
104
104
  [K in keyof T]: T[K] extends TSchema ? Static<T[K], P> : never;
105
105
  };
106
106
  export declare type IntersectProperties<T extends readonly TObject[]> = {
107
- [K in keyof T]: T[K]['properties'];
107
+ [K in keyof T]: T[K] extends TObject<infer P> ? P : {};
108
108
  };
109
109
  export interface TIntersect<T extends TObject[] = TObject[]> extends TObject {
110
110
  static: IntersectReduce<unknown, IntersectEvaluate<T, this['params']>>;