# defineCustomObject fields type reference

> Inspect the exact accepted type for fields in defineCustomObject, including nested options and constraints.

The `fields` property is an input to [defineCustomObject](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/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

```ts
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>>;
```

## Related types

-   [ApiNamedMap](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ApiNamedMap-f49c575d)
-   [FieldDefinitions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldDefinitions-12e4d0b4)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/defineCustomObject-fields-be3957b0

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
