将 JSON 对象转换为 TypeScript 类型
以下是将给定的 JSON 转换为 TypeScript 类型的示例:
type Translation = {
three: string;
num: {
zero: string;
one: string;
other: string;
};
num1: {
zero: string;
one: string;
other: string;
};
a: {
b: {
c: string;
};
d: {
c: string;
};
};
};
请注意,这只是一个示例,具体的类型定义可能会根据您的需求而有所变化。
原文地址: https://www.cveoy.top/t/topic/o4TW 著作权归作者所有。请勿转载和采集!