Skip to content

gunshi / default / GenerateNamespacedKey

Type Alias: GenerateNamespacedKey<Key, Prefixed>

ts
type GenerateNamespacedKey<Key, Prefixed> = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;

Generate a namespaced key.

Type Parameters

Type ParameterDefault type
Key extends string-
Prefixed extends stringtypeof BUILT_IN_PREFIX

Released under the MIT License.