diff --git a/src/type/intersect/intersect-type.ts b/src/type/intersect/intersect-type.ts index 1b1f6a5d..f62aa933 100644 --- a/src/type/intersect/intersect-type.ts +++ b/src/type/intersect/intersect-type.ts @@ -30,6 +30,8 @@ import type { TSchema, SchemaOptions } from '../schema/index' import type { Static } from '../static/index' import { Kind } from '../symbols/index' +type Simplify = {} & { [P in keyof T]: T[P] } + // ------------------------------------------------------------------ // IntersectStatic // ------------------------------------------------------------------ @@ -50,7 +52,7 @@ export interface IntersectOptions extends SchemaOptions { // prettier-ignore export interface TIntersect extends TSchema, IntersectOptions { [Kind]: 'Intersect' - static: TIntersectStatic + static: Simplify> type?: 'object' allOf: [...T] }