# buildIdentity

Canonical: https://docs.shumoku.dev/en/library/api/buildIdentity
Language: en

@shumoku/core · 0.4.0 · function

# buildIdentity

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/stamp.ts#L61)

Build an \`Identity\` from raw parts, dropping empty values. Returns \`undefined\` when nothing identifying was supplied (so callers don't stamp an empty identity object that the resolver would treat as \`unbound\`).

```
buildIdentity(parts: IdentityParts): Identity | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `parts` | `IdentityParts` | No additional description. | `—` |

## Returns

```
Identity | undefined
```

[`libs/@shumoku/core/src/plugin-kit/stamp.ts:61`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/stamp.ts#L61)
