message-resolver.d.ts 522 B

123456789101112131415161718192021
  1. /**
  2. * Transform flat json in obj to normal json in obj
  3. */
  4. export declare function handleFlatJson(obj: unknown): unknown;
  5. /**
  6. * Parse a string path into an array of segments
  7. */
  8. export declare function parse(path: Path): string[] | undefined;
  9. /** @VueI18nGeneral */
  10. export declare type Path = string;
  11. export declare type PathValue = string | number | boolean | Function | null | {
  12. [key: string]: PathValue;
  13. } | PathValue[];
  14. export declare function resolveValue(obj: unknown, path: Path): PathValue;
  15. export { }