有没有办法让TypeScript 枚举与来自JSON 的字符串兼容? 例如: enum Type { NEW, OLD } interface Thing { type: Type } let thing:Thing = JSON.parse('{"type": ...
確定! 回上一頁