Skip to main content

NormalizeModularActionReference

type

Maps a written reference to the canonical id it dispatches to. A host action id passes through unchanged. Anything else is treated as a command and gains the `command:` prefix.

type NormalizeModularActionReference<TAction extends string> = TAction extends StaticHostActionId ? TAction : `command:${TAction}`

Import

import { NormalizeModularActionReference } from '@modular/sdk/view';

Notes

category
Context