背景大家用過Typescript 都清楚,很多時候我們需要提前聲明一個類型,再將類型賦予變量 ... type Readonly<T> = { readonly [P in keyof T]: T[P]; }; ...
確定! 回上一頁