Skip to main content

normalizeHostActionId

function

Resolves a written reference to the canonical id the host dispatches on. A known host action id is returned as is. Everything else is read as a command and comes back prefixed. Already prefixed ids are left alone, so calling this twice is safe.

function normalizeHostActionId<K extends HostActionId>(actionId: K): K function normalizeHostActionId<K extends string>(actionId: K): NormalizeModularActionReference<K> function normalizeHostActionId<K extends string>(actionId: K): NormalizeModularActionReference<K>

Import

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

Notes

category
Context
category
Context
category
Context