Skip to main content

CanonicalHostActionInput

type

The input shape of an action addressed by its canonical id. Same resolution as ModularActionInput, minus the bare command id case. Use it below the normalization boundary, in envelopes and interceptors, where the id is already prefixed.

type CanonicalHostActionInput<K extends HostActionId> = K extends StaticHostActionId ? StaticHostActionMap[K]['input'] : K extends CommandHostActionId ? CommandInvokeInput : never

Import

import { CanonicalHostActionInput } from '@modular/sdk';

Notes

category
Context