Skip to content

actionInputDef

actionInputDef(input: WithMeta<ActionInputDefInput>): ActionInputModel

Create an action input definition model.

Produces a model for a single entry in the action’s inputs map.

Parameter Type Description

input

WithMeta<ActionInputDefInput>

Input definition properties and optional metadata.

ActionInputModel

A branded ActionInputModel.

const nameInput = actionInputDef({
description: "Name to greet",
required: true,
default: "World",
});