action_collection_helpers.ts

Declarations
#

4 declarations

view source

parse_action_input
#

action_collection_helpers.ts view source

<TMethod extends keyof typeof ActionInputs>(method: TMethod, data: unknown): ActionInputs[TMethod]

Parse action params with validation.

method

type TMethod

data

type unknown

returns

ActionInputs[TMethod]

parse_action_output
#

action_collection_helpers.ts view source

<TMethod extends keyof typeof ActionOutputs>(method: TMethod, data: unknown): ActionOutputs[TMethod]

Parse action result with validation.

method

type TMethod

data

type unknown

returns

ActionOutputs[TMethod]

safe_parse_action_input
#

action_collection_helpers.ts view source

<TMethod extends keyof typeof ActionInputs>(method: TMethod, data: unknown): ZodSafeParseResult<ActionInputs[TMethod]>

Safe parse action params.

method

type TMethod

data

type unknown

returns

ZodSafeParseResult<ActionInputs[TMethod]>

safe_parse_action_output
#

action_collection_helpers.ts view source

<TMethod extends keyof typeof ActionOutputs>(method: TMethod, data: unknown): ZodSafeParseResult<ActionOutputs[TMethod]>

Safe parse action result.

method

type TMethod

data

type unknown

returns

ZodSafeParseResult<ActionOutputs[TMethod]>

Depends on
#

Imported by
#