Skip to content

vue-i18n / general / LocaleMessageType

Type Alias: LocaleMessageType<T, Message>

ts
type LocaleMessageType<T, Message> = T extends string ? string : T extends () => Promise<infer P> ? LocaleMessageDictionary<P, Message> : T extends (...args) => any ? (...args) => ReturnType<T> : T extends Record<string, unknown> ? LocaleMessageDictionary<T, Message> : T extends T[] ? { [K in keyof T]: T[K] } : T;

Vue I18n General

Type Parameters

Type ParameterDefault type
T-
Messagestring

Released under the MIT License.