const user: Record<'name'|'email', string> = { name: '', email: '' } // 複雜點的類型推斷function mapObject<K extends string | number, T, ...
確定! 回上一頁