We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5f904 commit dbf0e3dCopy full SHA for dbf0e3d
plugins/development/plugin-theme-data/src/client/composables/useThemeLocaleData.ts
@@ -1,9 +1,11 @@
1
import type { ComputedRef, InjectionKey } from 'vue'
2
import { inject } from 'vue'
3
import type { RouteLocale } from 'vuepress/client'
4
+import type { LocaleData } from 'vuepress/shared'
5
import type { ThemeData } from '../../shared/index.js'
6
-export type ThemeLocaleDataRef<T extends ThemeData = ThemeData> = ComputedRef<T>
7
+export type ThemeLocaleDataRef<T extends LocaleData = LocaleData> =
8
+ ComputedRef<T>
9
10
export const themeLocaleDataSymbol: InjectionKey<ThemeLocaleDataRef> = Symbol(
11
__VUEPRESS_DEV__ ? 'themeLocaleData' : '',
0 commit comments