diff --git a/.github/ISSUE_TEMPLATE/answer.md b/.github/ISSUE_TEMPLATE/answer.md index b0c17733..da94cf1d 100644 --- a/.github/ISSUE_TEMPLATE/answer.md +++ b/.github/ISSUE_TEMPLATE/answer.md @@ -15,3 +15,8 @@ For example: +```ts +// your answers +``` + + \ No newline at end of file diff --git a/README.md b/README.md index fbae2e6a..fa7282d5 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ English | 简体中文 > Click the following badges to see detail of the challenges! -
#4・Pick<T, K> #7・Readonly<T>


#2・Get Return Type #3・Omit<T, K> #8・Readonly 2 #9・Deep Readonly


#5・Get Readonly Keys


#6・Simple Vue +
#4・Pick<T, K> #7・Readonly<T>


#10・Tuple to Union #2・Get Return Type #3・Omit<T, K> #8・Readonly 2 #9・Deep Readonly


#5・Get Readonly Keys


#6・Simple Vue ## Recommended Readings diff --git a/README.zh-CN.md b/README.zh-CN.md index 2dd8fd75..73d16aaa 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -28,7 +28,7 @@ TypeScript 类型体操姿势合集 > 点击下方徽章查看题目内容 -
#4・实现 Pick<T, K> #7・实现 Readonly<T>


#2・获取函数返回类型 #3・实现 Omit<T, K> #8・Readonly 2 #9・深度 Readonly


#5・获取只读字段


#6・简单的 Vue 类型 +
#4・实现 Pick<T, K> #7・实现 Readonly<T>


#10・元组转合集 #2・获取函数返回类型 #3・实现 Omit<T, K> #8・Readonly 2 #9・深度 Readonly


#5・获取只读字段


#6・简单的 Vue 类型 ## 推荐读物 diff --git a/questions/10-medium-tuple-to-union/README.md b/questions/10-medium-tuple-to-union/README.md index f02ef5fd..42094537 100644 --- a/questions/10-medium-tuple-to-union/README.md +++ b/questions/10-medium-tuple-to-union/README.md @@ -1,4 +1,4 @@ -

Deep Readonly medium #readonly #object-keys #deep

by Anthony Fu @antfu

Take the Challenge

+

Tuple to Union medium #infer #tuple #union

by Anthony Fu @antfu

Take the Challenge

Implement a generic `TupleToUnion` which covers the values of a tuple to its values union. @@ -7,7 +7,7 @@ For example ```ts type Arr = ['1', '2', '3'] -const a: TupleToUnion // expected to be '1' | '2' | '3' +const a: TupleToUnion // expected to be '1' | '2' | '3' ``` -Back Check out Solutions Share your Solutions \ No newline at end of file +Back Check out Solutions Share your Solutions \ No newline at end of file diff --git a/scripts/list.ts b/scripts/list.ts index 528ebd1f..e86b85b0 100644 --- a/scripts/list.ts +++ b/scripts/list.ts @@ -33,7 +33,7 @@ export function readmeCleanUp(text: string) { export async function loadQuizes(): Promise { const root = path.resolve(__dirname, '../questions') - const folders = await fg('{0..9}-*', { + const folders = await fg('{0..9}*-*', { onlyDirectories: true, cwd: root, })