@hsui/core
Version:
Hundsun frontend runtime core framework
20 lines (19 loc) • 550 B
TypeScript
declare type Path = string;
export type PathValue = PathValueObject | PathValueArray | Function | string | number | boolean | null;
export type PathValueObject = {
[key: string]: PathValue;
};
export type PathValueArray = Array<PathValue>;
export default class I18nPath {
_cache: Object;
constructor();
/**
* External parse that check for a cache hit first
*/
parsePath(path: Path): Array<string>;
/**
* Get path value from path string
*/
getPathValue(obj: Object, path: Path): PathValue;
}
export {};