@sinclair/typebox 0.29.2 → 0.29.3

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.29.2",
3
+ "version": "0.29.3",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
package/typebox.d.ts CHANGED
@@ -193,9 +193,9 @@ export interface TIntersect<T extends TSchema[] = TSchema[]> extends TSchema, In
193
193
  type?: 'object';
194
194
  allOf: [...T];
195
195
  }
196
- export type TKeyOfProperties<T extends TSchema> = Static<T> extends infer S ? UnionToTuple<{
196
+ export type TKeyOfProperties<T extends TSchema> = Discard<Static<T> extends infer S ? UnionToTuple<{
197
197
  [K in keyof S]: TLiteral<Assert<K, TLiteralValue>>;
198
- }[keyof S]> : [];
198
+ }[keyof S]> : [], undefined>;
199
199
  export type TKeyOfIndicesArray<T extends TSchema[]> = UnionToTuple<keyof T & `${number}`>;
200
200
  export type TKeyOfIndices<T extends TSchema[]> = AssertRest<TKeyOfIndicesArray<T> extends infer R ? {
201
201
  [K in keyof R]: TLiteral<Assert<R[K], TLiteralValue>>;