Skip to content

API > wxt/utils/storage > MetaKey

Type alias: MetaKey<K>

MetaKey<K>: `${K}$`

Template-literal type for a metadata key. Applying getMetaKey to a string literal K produces ${K}$ at the type level, so downstream callers can see the exact meta key when the input is known.

Example

ts
type Meta = MetaKey<'theme'>; // 'theme$'

Type parameters

Parameter
K extends string

Source

packages/storage/dist/index.d.mts:56


Generated using typedoc-plugin-markdown and TypeDoc