The fields property is an input to defineCustomObject.
Custom-field definitions keyed by full API names ending in __c. The returned object's fields map preserves these keys for typed references. Omit this map when defining fields separately with defineField.
Input shape
FieldDefinitions
Exact accepted type
F & ApiNamedMap<F> & { [K in keyof F]: string extends Exclude<F[K]["section"], undefined> ? F[K] : Exclude<F[K]["section"], undefined> extends NoInfer<keyof S> ? F[K] : never; }
TypeScript signature and generic parameters
defineCustomObject<const A extends `${string}__c`, const F extends FieldDefinitions = {}, C extends string = `${Unsuffixed<A>}_category`, S extends SectionDefinitions = {}, N extends NameFieldDefinition = { kind: "text"; }>(props: DefineCustomObjectProps<A, F, C, S, N>): DefinedCustomObject<CustomObjectDefinition<LogicalCustomObjectName<Unsuffixed<A>>, LogicalCategoryName<C>, S, F, N>>;