@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.
- package/package.json +1 -1
- package/typebox.d.ts +2 -2
package/package.json
CHANGED
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>>;
|