Skip to main content

Type Alias: UnwrapProperties<T>

UnwrapProperties<T>: { [K in OptionalProperties<T>]?: T[K] extends Property<infer R> ? R extends Object ? UnwrapProperties<R> : R : T[K] } & { [K in Exclude<keyof T, OptionalProperties<T>>]: T[K] extends Property<infer R> ? R extends Object ? UnwrapProperties<R> : R : T[K] }

A utility type for unwrapping the properties of entity builder properties.

Type Parameters

Type ParameterDescription
TThe type to unwrap the properties from.

Defined in

packages/verse-core/src/model/builder.ts:61