# Fix type error with optional approvalPolicy and sandboxMode · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/e70b34de62a4598b0f5b25d5c63d82ab230172e7)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: e70b34de62a4598b0f5b25d5c63d82ab230172e7

Requested commit: e70b34de62a4598b0f5b25d5c63d82ab230172e7

Commit: e70b34de62a4598b0f5b25d5c63d82ab230172e7

Tree: eb11802653cbe96ede4d987663c13da38d40a3e2

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Fix type error with optional approvalPolicy and sandboxMode

Use conditional spreading for these properties to handle undefined
values correctly with exactOptionalPropertyTypes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

```

## Parents

- [b1584fab8fefe47a8fb903ecbb620981854fcbf3](https://git.cafe/pingdotgg/t3code/commit/b1584fab8fefe47a8fb903ecbb620981854fcbf3?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/e70b34de62a4598b0f5b25d5c63d82ab230172e7?format=markdown)
