CommitTsField
Defined in: packages/core/src/fields/commitTs/types.ts:98
Resolved configuration for a commitTs() field, after all defaults are applied.
- CommitTsFieldInput for the user-facing input type
- commitTs for the config function that produces this type
Extends
Section titled “Extends”Omit<BaseField<TCollectionSlug,TFieldMeta>,"required"|"defaultValue"|"admin">
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends VexResourceSlug = VexResourceSlug
TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends object = { }
Properties
Section titled “Properties”admin:
FieldAdminConfig<TCollectionSlug,ComponentHKT> &object
Defined in: packages/core/src/fields/commitTs/types.ts:118
Resolved admin config — the full FieldAdminConfig shape every data field carries, plus format.
Type Declaration
Section titled “Type Declaration”format
Section titled “format”format:
CommitTsFieldAdminFormat
defaultValue
Section titled “defaultValue”defaultValue:
number|undefined
Defined in: packages/core/src/fields/commitTs/types.ts:115
undefined on a brand-new, not-yet-saved document (no stamp has
happened yet) — never an admin-settable default. Once stamped, holds
the resolved Unix-ms value (find/get/search convert Convex’s
bigint ns before this is ever read); typed number | undefined
rather than the input type’s bare undefined so every generic
consumer keyed off TField["defaultValue"] (CellComponentProps,
ColumnDef’s value type, …) sees the field’s real stored-value type.
description?
Section titled “description?”
optionaldescription?:string
Defined in: packages/core/src/fields/baseTypes.ts:585
Semantic description of the field. Used in three places:
- Helper text rendered below the field input in the admin form UI.
- As the Zod
.meta({ description })value for form validation. - As the JSDoc comment on the generated document interface property.
To write a separate JSDoc comment, use interfaceDescription in addition.
Inherited from
Section titled “Inherited from”index?
Section titled “index?”
optionalindex?:ResolvedFieldIndexConfigInput
Defined in: packages/core/src/fields/baseTypes.ts:589
Convex index name for this field, or the object form for a compound index.
Inherited from
Section titled “Inherited from”interfaceDescription?
Section titled “interfaceDescription?”
optionalinterfaceDescription?:string
Defined in: packages/core/src/fields/baseTypes.ts:587
The JSDoc comment on the generated document interface property
Inherited from
Section titled “Inherited from”BaseField.interfaceDescription
interfaceType
Section titled “interfaceType”interfaceType:
string
Defined in: packages/core/src/fields/baseTypes.ts:591
TypeScript type string written to generated document interfaces (e.g. "string", "number", "string[]").
Inherited from
Section titled “Inherited from”label:
string
Defined in: packages/core/src/fields/commitTs/types.ts:103
Display label shown in the admin form. Always set — inferred from the field key if not provided.
Overrides
Section titled “Overrides”meta:
TFieldMeta
Defined in: packages/core/src/fields/baseTypes.ts:592
Inherited from
Section titled “Inherited from”Omit.meta
on:
CommitTsFieldOn
Defined in: packages/core/src/fields/commitTs/types.ts:116
required
Section titled “required”required:
false
Defined in: packages/core/src/fields/commitTs/types.ts:105
Always false — a commitTs field is never required input; it is never input at all.
readonlytype:"commitTs"
Defined in: packages/core/src/fields/commitTs/types.ts:102
validate?
Section titled “validate?”
optionalvalidate?: (props) =>void|Promise<void>
Defined in: packages/core/src/fields/baseTypes.ts:597
Server-only async validation, run after the generated Zod schema passes.
Parameters
Section titled “Parameters”FieldValidateProps<TCollectionSlug>
Returns
Section titled “Returns”void | Promise<void>
Inherited from
Section titled “Inherited from”Omit.validate