---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/object-types](../index.md) / buildCustomAttributeTypes

# Function: buildCustomAttributeTypes()

> **buildCustomAttributeTypes**(`sources`, `options`): `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/object-types/script-types.ts:171](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/object-types/script-types.ts#L171)

Builds a declaration file that adds custom attributes to the Script API
`ICustomAttributes` interfaces, so `product.custom.myAttribute` gets
completions and types. System attributes in the input are ignored.

## Parameters

### sources

[`CustomAttributeTypeSource`](../interfaces/CustomAttributeTypeSource.md)[]

### options

#### header?

`string`

## Returns

`string`
