Skip to main content

FieldHasDefault TypeAlias

Type utility for determining if an implicit field schema is known to have a default value.

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 FieldHasDefault<T extends ImplicitFieldSchema> = [T] extends [
FieldSchema<FieldKind.Optional | FieldKind.Identifier>
] ? true : false;

Type Parameters

Parameter Constraint Description
T ImplicitFieldSchema

Remarks

Yields false when unknown.