Skip to content

Interface: UseOnCommandOptions<D, R>

Defined in: src/wirestate-lit/commands/use-on-command.ts:11

Represents options for useOnCommand.

Type Parameters

Type ParameterDefault type
Dunknown
Runknown

Properties

handler

ts
handler: CommandHandler<D, R>;

Defined in: src/wirestate-lit/commands/use-on-command.ts:19

The command handler function.


type

ts
type: CommandType;

Defined in: src/wirestate-lit/commands/use-on-command.ts:15

The command type to listen for.