Skip to main content

TreeFieldFromImplicitFieldUnsafe TypeAlias

Unenforced version of TreeFieldFromImplicitField.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature

export type TreeFieldFromImplicitFieldUnsafe<TSchema extends Unenforced<ImplicitFieldSchema>> = TSchema extends FieldSchemaUnsafe<infer Kind, infer Types> ? ApplyKind<TreeNodeFromImplicitAllowedTypesUnsafe<Types>, Kind> : TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypesUnsafe<TSchema> : unknown;

Type Parameters

Parameter Constraint Description
TSchema Unenforced<ImplicitFieldSchema>

Remarks

Do note use this type directly: its only needed in the implementation of generic logic which define recursive schema, not when using recursive schema.