@mr-hope/vuepress-shared
Version:
Shared for vuepress-theme-hope
18 lines (17 loc) • 592 B
TypeScript
import { lang2PathConfig } from "./config";
/**
* Locales config, a key-value object
*
* - Key is the locale path (prefix)
* - Value is the locales data
*
* @remark suffix `Config` means this is for user config
*/
export declare type LocaleConfig<T extends LocaleData = LocaleData> = Record<string, Partial<T>>;
/**
* Locales data
*/
export declare type LocaleData = Record<string, any>;
/** Types for supported lang codes */
export declare type HopeLang = keyof typeof lang2PathConfig;
export declare type ConvertLocaleConfig<T extends LocaleData = LocaleData> = Record<string, T>;