Skip to content

vue-i18n / general / JsonPaths

Type Alias: JsonPaths<T, Key>

ts
type JsonPaths<T, Key> = Key extends string ? T[Key] extends Record<string, any> ? `${Key}.${JsonPaths<T[Key]>}` : `${Key}` : never;

Type Parameters

Type ParameterDefault type
T-
Key extends keyof Tkeyof T

Released under the MIT License.