You might try taking advantage of TypeScript's built-in Record<K, T> type, which constructs an interface where the keys ( K ) all have the value of T :
確定! 回上一頁