iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
JavaScript

TypeScript Type Challenges 冒險篇章:30 天闖關之旅,type 簡單了?你確定? 系列

大家好!在接下來的30天裡,我們每天都會面對一個 Type Challenge 的挑戰題目。天降 TypeScript 於你,你準備好迎接了嗎?

我們將從基礎開始,一步步提升,經歷挑戰的起伏,有時會遇到讓人憂鬱的困難,也會體驗到突破難關的成就感。我們將一起庖丁解code,闖過30關,斬下31將!

準備好讓 TypeScript 變得簡單又有趣了嗎?快來迎接這場挑戰,享受過關後的 type平盛事吧!

參賽天數 13 天 | 共 13 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文
DAY 1

第1關:TypeScript 挑戰的序曲,踏上型別之旅

歡迎加入這次的 TypeScript Type Challenges 冒險! 這是一個為期 30 天的挑戰旅程,每天我將帶你挑戰一個 TypeScript 題目...

2024-09-15 ‧ 由 wayz 分享
DAY 2

第2關:Hello World,遇見最熟悉的陌生人

第2關:Hello, World! 關卡簡介 Hello, World! In Type Challenges, we use the type system...

2024-09-16 ‧ 由 wayz 分享
DAY 3

第3關:Pick!TypeScript 撿寶術:用 Pick 精準撿取型別

第3關:Pick 關卡簡介 Implement the built-in Pick<T, K> generic without using it....

2024-09-17 ‧ 由 wayz 分享
DAY 4

第4關:Readonly!TypeScript 可遠觀不可褻玩焉: Readonly 保護罩

第4關:Readonly 關卡簡介 Implement the built-in Readonly<T> generic without usin...

2024-09-18 ‧ 由 wayz 分享
DAY 5

第5關:Tuple to Object!TypeScript 魔法現眼前:元組變物件

第5關:Tuple to Object 關卡簡介 Given an array, transform it into an object type and t...

2024-09-19 ‧ 由 wayz 分享
DAY 6

第6關:First of Array!TypeScript 高要承認,挨打站穩:找出第一個元素

第6關:First of Array 關卡簡介 Implement a generic First<T> that takes an Array...

2024-09-20 ‧ 由 wayz 分享
DAY 7

第7關:Length of Tuple!TypeScript的三長兩短,給它量,很放心

第7關:Length of Tuple 關卡簡介 For given a tuple, you need create a generic Length, p...

2024-09-21 ‧ 由 wayz 分享
DAY 8

第8關:Exclude!TypeScript稽查員:不合格的全都出去

第8關:Exclude 關卡簡介 Implement the built-in Exclude<T, U>(Exclude from T thos...

2024-09-22 ‧ 由 wayz 分享
DAY 9

第9關:If!TypeScript可惜沒如果:boolean世界,非黑即白

第9關:If 關卡簡介 Implement the util type If<C, T, F> which accepts condition C...

2024-09-23 ‧ 由 wayz 分享
DAY 10

第10關:Concat!TypeScript 陣列拼圖:合併出完美結局

第10關:Concat 關卡簡介 Implement the JavaScript Array.concat function in the type sys...

2024-09-24 ‧ 由 wayz 分享