Skip to main content

InsertableTreeFieldFromImplicitField TypeAlias

Type of content that can be inserted into the tree for a field of the given schema.

Signature

export type InsertableTreeFieldFromImplicitField<TSchemaInput extends ImplicitFieldSchema, TSchema = UnionToIntersection<TSchemaInput>> = [TSchema] extends [FieldSchema<infer Kind, infer Types>] ? ApplyKindInput<InsertableTreeNodeFromImplicitAllowedTypes<Types>, Kind, true> : [TSchema] extends [ImplicitAllowedTypes] ? InsertableTreeNodeFromImplicitAllowedTypes<TSchema> : never;

Type Parameters

Parameter Constraint Default Description
TSchemaInput ImplicitFieldSchema Schema to process.
TSchema UnionToIntersection<TSchemaInput> Do not specify: default value used as implementation detail.

See Also

Input