We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e419c6f commit 759ccdaCopy full SHA for 759ccda
2 files changed
shared/const.ts
@@ -1,6 +1,5 @@
1
-export const STORAGE_KEY_LOCALE = 'local:locale'
2
-export const STORAGE_KEY_FEATURE_PREFIX = 'local:feature:' as const
3
-export const STORAGE_KEY_SKIP_INTL_ALERT = 'local:skipIntlAlert'
+export const STORAGE_KEY_LOCALE = (<const>'local:locale') satisfies StorageItemKey
+export const STORAGE_KEY_SKIP_INTL_ALERT = (<const>'local:skipIntlAlert') satisfies StorageItemKey
4
5
export const FEATURE_GROUPS = [
6
{
shared/feature.ts
@@ -1,3 +1,5 @@
+export const STORAGE_KEY_FEATURE_PREFIX = (<const>'local:feature:') satisfies StorageItemKey
+
export const getFeatureStorageKey = (featureKey: FeatureKey) =>
`${STORAGE_KEY_FEATURE_PREFIX}${featureKey}` as const
0 commit comments