# Function: add() (/nqtr/index/namespaces/RegisteredCommitments/functions/add)



\> **add**(...`commitments`): `void`

Defined in: [src/registries/RegisteredCommitments.ts:27](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/registries/RegisteredCommitments.ts#L27)

Save a commitment in the registered commitments. If the commitment already exists, it will be overwritten.

## Parameters [#parameters]

### commitments [#commitments]

...([`CommitmentInterface`](/nqtr/index/interfaces/CommitmentInterface) | [`CommitmentInterface`](/nqtr/index/interfaces/CommitmentInterface)\[])\[]

The commitment to save.

## Returns [#returns]

`void`
