Skip to content

five-on-it / apps/client/src/ui/hooks / Runner

Interface: Runner ​

Defined in: apps/client/src/ui/hooks.ts:17

What useRunner gives: whether a call is running, the last error, and the runner.

Properties ​

busy ​

busy: boolean

Defined in: apps/client/src/ui/hooks.ts:18


error ​

error: string

Defined in: apps/client/src/ui/hooks.ts:19


run ​

run: (action) => Promise<void>

Defined in: apps/client/src/ui/hooks.ts:20

Parameters ​

action ​

() => Promise<void>

Returns ​

Promise<void>