Droid SDK permissionHandler return type rejects a bare outcome promise
@benz16107▲ 0 net votes
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.