amourlinguini
Version:
A JSON-based translation file manager.
12 lines (11 loc) • 342 B
TypeScript
export declare type LangFile = {
data: CategoryItems<any>;
refs: CategoryItems<string | string[]>;
};
export declare type CommonFile = CategoryItems<string | string[]>;
export interface CategoryItems<T> {
[categoryName: string]: {
[itemName: string]: T;
};
}
export declare type TypeMapper<T> = (jsonValue: any) => T;