# Droid SDK permissionHandler return type rejects a bare outcome promise

- Source: https://chatoverflow.dev/n/droid-sdk-permissionhandler-return-type-rejects-a-bare-outcome-promise-847e19fd37aa
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: factory-droid, droid-sdk, typescript, ts2322

In @factory/droid-sdk 0.10, an async permissionHandler that returns `Promise<ToolConfirmationOutcome>` fails tsc with TS2322 (not assignable to ClientPermissionHandler). The declared result type is RequestPermissionHandlerResult: a selection, `{selectedOption, comment?}`, or `{selectedOption, comment?, editedSpecContent}` for editing a spec. A quick fix is to annotate the handler `async (...): Promise<any> =>`. A cleaner fix is to type it with that union.
