From 820dd04d351ba4ca385c0baf48047e63dcf11cbd Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 19 Apr 2022 12:07:27 +0800 Subject: [PATCH] chore: rename branch --- questions/00003-medium-omit/README.ja.md | 2 +- questions/00003-medium-omit/README.ko.md | 2 +- questions/00003-medium-omit/README.md | 2 +- questions/00003-medium-omit/README.zh-CN.md | 2 +- questions/00004-easy-pick/README.ja.md | 2 +- questions/00004-easy-pick/README.ko.md | 2 +- questions/00004-easy-pick/README.md | 2 +- questions/00004-easy-pick/README.zh-CN.md | 2 +- questions/00006-hard-simple-vue/README.ja.md | 2 +- questions/00006-hard-simple-vue/README.md | 2 +- questions/00006-hard-simple-vue/README.zh-CN.md | 2 +- questions/00007-easy-readonly/README.ja.md | 2 +- questions/00007-easy-readonly/README.ko.md | 2 +- questions/00007-easy-readonly/README.md | 2 +- questions/00007-easy-readonly/README.zh-CN.md | 2 +- questions/00008-medium-readonly-2/README.ja.md | 2 +- questions/00008-medium-readonly-2/README.ko.md | 2 +- questions/00008-medium-readonly-2/README.md | 2 +- questions/00008-medium-readonly-2/README.zh-CN.md | 2 +- questions/00009-medium-deep-readonly/README.ja.md | 2 +- questions/00009-medium-deep-readonly/README.ko.md | 2 +- questions/00009-medium-deep-readonly/README.md | 2 +- questions/00009-medium-deep-readonly/README.zh-CN.md | 2 +- questions/00010-medium-tuple-to-union/README.ja.md | 2 +- questions/00010-medium-tuple-to-union/README.ko.md | 2 +- questions/00010-medium-tuple-to-union/README.md | 2 +- questions/00010-medium-tuple-to-union/README.zh-CN.md | 2 +- questions/00011-easy-tuple-to-object/README.ja.md | 2 +- questions/00011-easy-tuple-to-object/README.ko.md | 2 +- questions/00011-easy-tuple-to-object/README.md | 2 +- questions/00011-easy-tuple-to-object/README.zh-CN.md | 2 +- questions/00014-easy-first/README.ja.md | 2 +- questions/00014-easy-first/README.ko.md | 2 +- questions/00014-easy-first/README.md | 2 +- questions/00014-easy-first/README.zh-CN.md | 2 +- questions/00015-medium-last/README.ja.md | 2 +- questions/00015-medium-last/README.md | 2 +- questions/00015-medium-last/README.zh-CN.md | 2 +- questions/00016-medium-pop/README.ja.md | 2 +- questions/00016-medium-pop/README.md | 2 +- questions/00016-medium-pop/README.zh-CN.md | 2 +- questions/00017-hard-currying-1/README.ja.md | 2 +- questions/00017-hard-currying-1/README.md | 2 +- questions/00017-hard-currying-1/README.zh-CN.md | 2 +- questions/00057-hard-get-required/README.ja.md | 2 +- questions/00057-hard-get-required/README.md | 2 +- questions/00057-hard-get-required/README.zh-CN.md | 2 +- questions/00059-hard-get-optional/README.ja.md | 2 +- questions/00059-hard-get-optional/README.md | 2 +- questions/00059-hard-get-optional/README.zh-CN.md | 2 +- questions/00089-hard-required-keys/README.ja.md | 2 +- questions/00089-hard-required-keys/README.md | 2 +- questions/00089-hard-required-keys/README.zh-CN.md | 2 +- questions/00090-hard-optional-keys/README.ja.md | 2 +- questions/00090-hard-optional-keys/README.md | 2 +- questions/00090-hard-optional-keys/README.zh-CN.md | 2 +- questions/00106-medium-trimleft/README.ja.md | 2 +- questions/00106-medium-trimleft/README.md | 2 +- questions/00106-medium-trimleft/README.zh-CN.md | 2 +- questions/00108-medium-trim/README.ja.md | 2 +- questions/00108-medium-trim/README.md | 2 +- questions/00108-medium-trim/README.zh-CN.md | 2 +- questions/00114-hard-camelcase/README.ja.md | 2 +- questions/00114-hard-camelcase/README.md | 2 +- questions/00213-hard-vue-basic-props/README.ja.md | 2 +- questions/00213-hard-vue-basic-props/README.md | 2 +- questions/00223-hard-isany/README.ja.md | 2 +- questions/00223-hard-isany/README.md | 2 +- questions/00462-extreme-currying-2/README.md | 2 +- questions/00462-extreme-currying-2/README.zh-CN.md | 2 +- questions/00472-hard-tuple-to-enum-object/README.ja.md | 2 +- questions/00472-hard-tuple-to-enum-object/README.md | 2 +- questions/00517-extreme-multiply/README.md | 2 +- questions/00533-easy-concat/README.ja.md | 2 +- questions/00533-easy-concat/README.ko.md | 2 +- questions/00533-easy-concat/README.md | 2 +- questions/00533-easy-concat/README.zh-CN.md | 2 +- questions/00545-hard-printf/README.ja.md | 2 +- questions/00545-hard-printf/README.md | 4 ++-- questions/00545-hard-printf/info.yml | 2 +- questions/00610-medium-camelcase/README.md | 2 +- questions/00612-medium-kebabcase/README.md | 2 +- questions/00651-hard-length-of-string-2/README.ja.md | 2 +- questions/00651-hard-length-of-string-2/README.md | 2 +- questions/00730-hard-union-to-tuple/README.md | 2 +- questions/01042-medium-isnever/README.md | 2 +- questions/01097-medium-isunion/README.md | 2 +- questions/02059-hard-drop-string/README.md | 2 +- questions/02070-medium-drop-char/README.md | 2 +- questions/02595-medium-pickbytype/README.md | 2 +- questions/02688-medium-startswith/README.md | 2 +- questions/02693-medium-endswith/README.md | 2 +- questions/02852-medium-omitbytype/README.md | 2 +- questions/02949-hard-objectfromentries/README.md | 2 +- questions/03057-easy-push/README.ko.md | 2 +- questions/03057-easy-push/README.md | 2 +- questions/03057-easy-push/README.zh-CN.md | 2 +- questions/03060-easy-unshift/README.ko.md | 2 +- questions/03060-easy-unshift/README.md | 2 +- questions/03060-easy-unshift/README.zh-CN.md | 2 +- questions/03062-medium-shift/README.md | 2 +- questions/03188-medium-tuple-to-nested-object/README.md | 2 +- questions/03196-medium-flip-arguments/README.md | 2 +- questions/03243-medium-flattendepth/README.md | 2 +- questions/04484-medium-istuple/README.md | 2 +- questions/04803-medium-trim-right/README.md | 2 +- questions/04803-medium-trim-right/README.zh-CN.md | 2 +- questions/05181-hard-mutable-keys/README.md | 2 +- scripts/actions/issue-pr.ts | 4 ++-- scripts/build.ts | 2 +- scripts/toUrl.ts | 4 ++-- 111 files changed, 114 insertions(+), 114 deletions(-) diff --git a/questions/00003-medium-omit/README.ja.md b/questions/00003-medium-omit/README.ja.md index c74e3df21..5e8e1702d 100644 --- a/questions/00003-medium-omit/README.ja.md +++ b/questions/00003-medium-omit/README.ja.md @@ -18,4 +18,4 @@ const todo: TodoPreview = { } ``` -
戻る 解答を共有 解答を確認

関連する課題

4・Pick \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

4・Pick diff --git a/questions/00003-medium-omit/README.ko.md b/questions/00003-medium-omit/README.ko.md index fe63c644b..897e11c10 100644 --- a/questions/00003-medium-omit/README.ko.md +++ b/questions/00003-medium-omit/README.ko.md @@ -18,4 +18,4 @@ const todo: TodoPreview = { } ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

4・Pick \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

4・Pick diff --git a/questions/00003-medium-omit/README.md b/questions/00003-medium-omit/README.md index d640d7314..dcfa3d156 100644 --- a/questions/00003-medium-omit/README.md +++ b/questions/00003-medium-omit/README.md @@ -20,4 +20,4 @@ const todo: TodoPreview = { } ``` -
Back Share your Solutions Check out Solutions

Related Challenges

4・Pick \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

4・Pick diff --git a/questions/00003-medium-omit/README.zh-CN.md b/questions/00003-medium-omit/README.zh-CN.md index 4c7e32364..4111f6bee 100644 --- a/questions/00003-medium-omit/README.zh-CN.md +++ b/questions/00003-medium-omit/README.zh-CN.md @@ -20,4 +20,4 @@ const todo: TodoPreview = { } ``` -
返回首页 分享你的解答 查看解答

相关挑战

4・实现 Pick +
返回首页 分享你的解答 查看解答

相关挑战

4・实现 Pick diff --git a/questions/00004-easy-pick/README.ja.md b/questions/00004-easy-pick/README.ja.md index 3ec31a260..d42ddf5c3 100644 --- a/questions/00004-easy-pick/README.ja.md +++ b/questions/00004-easy-pick/README.ja.md @@ -19,4 +19,4 @@ const todo: TodoPreview = { } ``` -
戻る 解答を共有 解答を確認

関連する課題

3・Omit +
戻る 解答を共有 解答を確認

関連する課題

3・Omit diff --git a/questions/00004-easy-pick/README.ko.md b/questions/00004-easy-pick/README.ko.md index 0e788672b..146c966dc 100644 --- a/questions/00004-easy-pick/README.ko.md +++ b/questions/00004-easy-pick/README.ko.md @@ -19,4 +19,4 @@ const todo: TodoPreview = { } ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

3・Omit +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

3・Omit diff --git a/questions/00004-easy-pick/README.md b/questions/00004-easy-pick/README.md index 99e90e64c..f7c1b9163 100644 --- a/questions/00004-easy-pick/README.md +++ b/questions/00004-easy-pick/README.md @@ -21,4 +21,4 @@ const todo: TodoPreview = { } ``` -
Back Share your Solutions Check out Solutions

Related Challenges

3・Omit +
Back Share your Solutions Check out Solutions

Related Challenges

3・Omit diff --git a/questions/00004-easy-pick/README.zh-CN.md b/questions/00004-easy-pick/README.zh-CN.md index 6adbf4621..12935ca64 100644 --- a/questions/00004-easy-pick/README.zh-CN.md +++ b/questions/00004-easy-pick/README.zh-CN.md @@ -23,4 +23,4 @@ const todo: TodoPreview = { } ``` -
返回首页 分享你的解答 查看解答

相关挑战

3・实现 Omit +
返回首页 分享你的解答 查看解答

相关挑战

3・实现 Omit diff --git a/questions/00006-hard-simple-vue/README.ja.md b/questions/00006-hard-simple-vue/README.ja.md index b6af84733..f2220a855 100644 --- a/questions/00006-hard-simple-vue/README.ja.md +++ b/questions/00006-hard-simple-vue/README.ja.md @@ -36,4 +36,4 @@ const instance = SimpleVue({ }) ``` -
戻る 解答を共有 解答を確認

関連する課題

213・Vue Basic Props \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

213・Vue Basic Props diff --git a/questions/00006-hard-simple-vue/README.md b/questions/00006-hard-simple-vue/README.md index 31dd6a98f..61926bae1 100644 --- a/questions/00006-hard-simple-vue/README.md +++ b/questions/00006-hard-simple-vue/README.md @@ -36,4 +36,4 @@ const instance = SimpleVue({ }) ``` -
Back Share your Solutions Check out Solutions

Related Challenges

213・Vue Basic Props +
Back Share your Solutions Check out Solutions

Related Challenges

213・Vue Basic Props diff --git a/questions/00006-hard-simple-vue/README.zh-CN.md b/questions/00006-hard-simple-vue/README.zh-CN.md index 667de7cb4..846177612 100644 --- a/questions/00006-hard-simple-vue/README.zh-CN.md +++ b/questions/00006-hard-simple-vue/README.zh-CN.md @@ -36,4 +36,4 @@ const instance = SimpleVue({ }) ``` -
返回首页 分享你的解答 查看解答

相关挑战

213・Vue Basic Props +
返回首页 分享你的解答 查看解答

相关挑战

213・Vue Basic Props diff --git a/questions/00007-easy-readonly/README.ja.md b/questions/00007-easy-readonly/README.ja.md index 5c5f53c9a..74b2c4cd4 100644 --- a/questions/00007-easy-readonly/README.ja.md +++ b/questions/00007-easy-readonly/README.ja.md @@ -19,4 +19,4 @@ todo.title = "Hello" // Error: cannot reassign a readonly property todo.description = "barFoo" // Error: cannot reassign a readonly property ``` -
戻る 解答を共有 解答を確認

関連する課題

8・Readonly 2 9・Deep Readonly +
戻る 解答を共有 解答を確認

関連する課題

8・Readonly 2 9・Deep Readonly diff --git a/questions/00007-easy-readonly/README.ko.md b/questions/00007-easy-readonly/README.ko.md index 5f003db52..620591444 100644 --- a/questions/00007-easy-readonly/README.ko.md +++ b/questions/00007-easy-readonly/README.ko.md @@ -19,4 +19,4 @@ todo.title = "Hello" // Error: cannot reassign a readonly property todo.description = "barFoo" // Error: cannot reassign a readonly property ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

8・Readonly 2 9・Deep Readonly \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

8・Readonly 2 9・Deep Readonly diff --git a/questions/00007-easy-readonly/README.md b/questions/00007-easy-readonly/README.md index 0eb67d631..5a372ee3f 100644 --- a/questions/00007-easy-readonly/README.md +++ b/questions/00007-easy-readonly/README.md @@ -22,4 +22,4 @@ todo.title = "Hello" // Error: cannot reassign a readonly property todo.description = "barFoo" // Error: cannot reassign a readonly property ``` -
Back Share your Solutions Check out Solutions

Related Challenges

8・Readonly 2 9・Deep Readonly \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

8・Readonly 2 9・Deep Readonly diff --git a/questions/00007-easy-readonly/README.zh-CN.md b/questions/00007-easy-readonly/README.zh-CN.md index 034801805..b8c680588 100644 --- a/questions/00007-easy-readonly/README.zh-CN.md +++ b/questions/00007-easy-readonly/README.zh-CN.md @@ -25,4 +25,4 @@ todo.title = "Hello" // Error: cannot reassign a readonly property todo.description = "barFoo" // Error: cannot reassign a readonly property ``` -
返回首页 分享你的解答 查看解答

相关挑战

8・Readonly 2 9・深度 Readonly \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

8・Readonly 2 9・深度 Readonly diff --git a/questions/00008-medium-readonly-2/README.ja.md b/questions/00008-medium-readonly-2/README.ja.md index c7c7f1811..99f28f5f4 100644 --- a/questions/00008-medium-readonly-2/README.ja.md +++ b/questions/00008-medium-readonly-2/README.ja.md @@ -24,4 +24,4 @@ todo.description = "barFoo" // Error: cannot reassign a readonly property todo.completed = true // OK ``` -
戻る 解答を共有 解答を確認

関連する課題

7・Readonly 9・Deep Readonly \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

7・Readonly 9・Deep Readonly diff --git a/questions/00008-medium-readonly-2/README.ko.md b/questions/00008-medium-readonly-2/README.ko.md index a1cdec4d6..e1aa4b50e 100644 --- a/questions/00008-medium-readonly-2/README.ko.md +++ b/questions/00008-medium-readonly-2/README.ko.md @@ -22,4 +22,4 @@ todo.description = "barFoo" // Error: cannot reassign a readonly property todo.completed = true // OK ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

7・Readonly 9・Deep Readonly \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

7・Readonly 9・Deep Readonly diff --git a/questions/00008-medium-readonly-2/README.md b/questions/00008-medium-readonly-2/README.md index b9bbaeca8..7a0669645 100644 --- a/questions/00008-medium-readonly-2/README.md +++ b/questions/00008-medium-readonly-2/README.md @@ -24,4 +24,4 @@ todo.description = "barFoo" // Error: cannot reassign a readonly property todo.completed = true // OK ``` -
Back Share your Solutions Check out Solutions

Related Challenges

7・Readonly 9・Deep Readonly \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

7・Readonly 9・Deep Readonly diff --git a/questions/00008-medium-readonly-2/README.zh-CN.md b/questions/00008-medium-readonly-2/README.zh-CN.md index f343dccb1..dcb1dd866 100644 --- a/questions/00008-medium-readonly-2/README.zh-CN.md +++ b/questions/00008-medium-readonly-2/README.zh-CN.md @@ -26,4 +26,4 @@ todo.description = "barFoo" // Error: cannot reassign a readonly property todo.completed = true // OK ``` -
返回首页 分享你的解答 查看解答

相关挑战

7・实现 Readonly 9・深度 Readonly \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

7・实现 Readonly 9・深度 Readonly diff --git a/questions/00009-medium-deep-readonly/README.ja.md b/questions/00009-medium-deep-readonly/README.ja.md index 122fe6e73..e37de9daa 100644 --- a/questions/00009-medium-deep-readonly/README.ja.md +++ b/questions/00009-medium-deep-readonly/README.ja.md @@ -26,4 +26,4 @@ type Expected = { type Todo = DeepReadonly // should be same as `Expected` ``` -
戻る 解答を共有 解答を確認

関連する課題

7・Readonly 8・Readonly 2 \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

7・Readonly 8・Readonly 2 diff --git a/questions/00009-medium-deep-readonly/README.ko.md b/questions/00009-medium-deep-readonly/README.ko.md index ab73c0709..2cc6ea501 100644 --- a/questions/00009-medium-deep-readonly/README.ko.md +++ b/questions/00009-medium-deep-readonly/README.ko.md @@ -26,4 +26,4 @@ type Expected = { type Todo = DeepReadonly // should be same as `Expected` ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

7・Readonly 8・Readonly 2 +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

7・Readonly 8・Readonly 2 diff --git a/questions/00009-medium-deep-readonly/README.md b/questions/00009-medium-deep-readonly/README.md index 0e38696cd..c73f40fac 100644 --- a/questions/00009-medium-deep-readonly/README.md +++ b/questions/00009-medium-deep-readonly/README.md @@ -26,4 +26,4 @@ type Expected = { type Todo = DeepReadonly // should be same as `Expected` ``` -
Back Share your Solutions Check out Solutions

Related Challenges

7・Readonly 8・Readonly 2 +
Back Share your Solutions Check out Solutions

Related Challenges

7・Readonly 8・Readonly 2 diff --git a/questions/00009-medium-deep-readonly/README.zh-CN.md b/questions/00009-medium-deep-readonly/README.zh-CN.md index 0892db247..8c00a00f3 100644 --- a/questions/00009-medium-deep-readonly/README.zh-CN.md +++ b/questions/00009-medium-deep-readonly/README.zh-CN.md @@ -28,4 +28,4 @@ type Expected = { type Todo = DeepReadonly // should be same as `Expected` ``` -
返回首页 分享你的解答 查看解答

相关挑战

7・实现 Readonly 8・Readonly 2 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

7・实现 Readonly 8・Readonly 2 diff --git a/questions/00010-medium-tuple-to-union/README.ja.md b/questions/00010-medium-tuple-to-union/README.ja.md index 7b9d442df..4cd8237cb 100644 --- a/questions/00010-medium-tuple-to-union/README.ja.md +++ b/questions/00010-medium-tuple-to-union/README.ja.md @@ -10,4 +10,4 @@ type Arr = ['1', '2', '3'] type Test = TupleToUnion // expected to be '1' | '2' | '3' ``` -
戻る 解答を共有 解答を確認

関連する課題

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00010-medium-tuple-to-union/README.ko.md b/questions/00010-medium-tuple-to-union/README.ko.md index 743876ad8..3c87f5285 100644 --- a/questions/00010-medium-tuple-to-union/README.ko.md +++ b/questions/00010-medium-tuple-to-union/README.ko.md @@ -10,4 +10,4 @@ type Arr = ['1', '2', '3'] type Test = TupleToUnion // expected to be '1' | '2' | '3' ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00010-medium-tuple-to-union/README.md b/questions/00010-medium-tuple-to-union/README.md index b24c69696..4adc45fd7 100644 --- a/questions/00010-medium-tuple-to-union/README.md +++ b/questions/00010-medium-tuple-to-union/README.md @@ -10,4 +10,4 @@ type Arr = ['1', '2', '3'] type Test = TupleToUnion // expected to be '1' | '2' | '3' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00010-medium-tuple-to-union/README.zh-CN.md b/questions/00010-medium-tuple-to-union/README.zh-CN.md index 1a3f79b79..1bf8ca61d 100644 --- a/questions/00010-medium-tuple-to-union/README.zh-CN.md +++ b/questions/00010-medium-tuple-to-union/README.zh-CN.md @@ -10,4 +10,4 @@ type Arr = ['1', '2', '3'] type Test = TupleToUnion // expected to be '1' | '2' | '3' ``` -
返回首页 分享你的解答 查看解答

相关挑战

11・元组转换为对象 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object +
返回首页 分享你的解答 查看解答

相关挑战

11・元组转换为对象 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00011-easy-tuple-to-object/README.ja.md b/questions/00011-easy-tuple-to-object/README.ja.md index b90b1db9f..47a482f80 100644 --- a/questions/00011-easy-tuple-to-object/README.ja.md +++ b/questions/00011-easy-tuple-to-object/README.ja.md @@ -10,4 +10,4 @@ const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const type result = TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} ``` -
戻る 解答を共有 解答を確認

関連する課題

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object +
戻る 解答を共有 解答を確認

関連する課題

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00011-easy-tuple-to-object/README.ko.md b/questions/00011-easy-tuple-to-object/README.ko.md index 31ed9b196..ce6a7c844 100644 --- a/questions/00011-easy-tuple-to-object/README.ko.md +++ b/questions/00011-easy-tuple-to-object/README.ko.md @@ -10,4 +10,4 @@ const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const type result = TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00011-easy-tuple-to-object/README.md b/questions/00011-easy-tuple-to-object/README.md index 72abf49e8..ddb8b5516 100644 --- a/questions/00011-easy-tuple-to-object/README.md +++ b/questions/00011-easy-tuple-to-object/README.md @@ -10,4 +10,4 @@ const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const type result = TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} ``` -
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object +
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00011-easy-tuple-to-object/README.zh-CN.md b/questions/00011-easy-tuple-to-object/README.zh-CN.md index 6b380fbdb..a5d404fcb 100644 --- a/questions/00011-easy-tuple-to-object/README.zh-CN.md +++ b/questions/00011-easy-tuple-to-object/README.zh-CN.md @@ -12,4 +12,4 @@ const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const type result = TupleToObject // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'} ``` -
返回首页 分享你的解答 查看解答

相关挑战

10・元组转合集 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object +
返回首页 分享你的解答 查看解答

相关挑战

10・元组转合集 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00014-easy-first/README.ja.md b/questions/00014-easy-first/README.ja.md index f2fe52564..46b0f7d4a 100644 --- a/questions/00014-easy-first/README.ja.md +++ b/questions/00014-easy-first/README.ja.md @@ -12,4 +12,4 @@ type head1 = First // expected to be 'a' type head2 = First // expected to be 3 ``` -
戻る 解答を共有 解答を確認

関連する課題

15・Last of Array +
戻る 解答を共有 解答を確認

関連する課題

15・Last of Array diff --git a/questions/00014-easy-first/README.ko.md b/questions/00014-easy-first/README.ko.md index bc4d2145f..9879e9dd4 100644 --- a/questions/00014-easy-first/README.ko.md +++ b/questions/00014-easy-first/README.ko.md @@ -12,4 +12,4 @@ type head1 = First // expected to be 'a' type head2 = First // expected to be 3 ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

15・Last of Array \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

15・Last of Array diff --git a/questions/00014-easy-first/README.md b/questions/00014-easy-first/README.md index 3da6744dd..3514ba99f 100644 --- a/questions/00014-easy-first/README.md +++ b/questions/00014-easy-first/README.md @@ -13,4 +13,4 @@ type head1 = First // expected to be 'a' type head2 = First // expected to be 3 ``` -
Back Share your Solutions Check out Solutions

Related Challenges

15・Last of Array \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

15・Last of Array diff --git a/questions/00014-easy-first/README.zh-CN.md b/questions/00014-easy-first/README.zh-CN.md index 00d5940af..b716300cc 100644 --- a/questions/00014-easy-first/README.zh-CN.md +++ b/questions/00014-easy-first/README.zh-CN.md @@ -14,4 +14,4 @@ type head1 = First // expected to be 'a' type head2 = First // expected to be 3 ``` -
返回首页 分享你的解答 查看解答

相关挑战

15・最后一个元素 +
返回首页 分享你的解答 查看解答

相关挑战

15・最后一个元素 diff --git a/questions/00015-medium-last/README.ja.md b/questions/00015-medium-last/README.ja.md index af18cb557..7d4235659 100644 --- a/questions/00015-medium-last/README.ja.md +++ b/questions/00015-medium-last/README.ja.md @@ -14,4 +14,4 @@ type tail1 = Last // expected to be 'c' type tail2 = Last // expected to be 1 ``` -
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 16・Pop \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 16・Pop diff --git a/questions/00015-medium-last/README.md b/questions/00015-medium-last/README.md index 0abf67437..d6bb80911 100644 --- a/questions/00015-medium-last/README.md +++ b/questions/00015-medium-last/README.md @@ -14,4 +14,4 @@ type tail1 = Last // expected to be 'c' type tail2 = Last // expected to be 1 ``` -
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 16・Pop +
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 16・Pop diff --git a/questions/00015-medium-last/README.zh-CN.md b/questions/00015-medium-last/README.zh-CN.md index 4462e1011..7db5968ac 100644 --- a/questions/00015-medium-last/README.zh-CN.md +++ b/questions/00015-medium-last/README.zh-CN.md @@ -16,4 +16,4 @@ type tail1 = Last // expected to be 'c' type tail2 = Last // expected to be 1 ``` -
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 16・出堆 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 16・出堆 diff --git a/questions/00016-medium-pop/README.ja.md b/questions/00016-medium-pop/README.ja.md index 3adf829d9..b85552ee4 100644 --- a/questions/00016-medium-pop/README.ja.md +++ b/questions/00016-medium-pop/README.ja.md @@ -16,4 +16,4 @@ type re2 = Pop // expected to be [3, 2] **おまけ**: 同様に `Shift`、 `Push`、 `Unshift` も実装できますか? -
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 15・Last of Array \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 15・Last of Array diff --git a/questions/00016-medium-pop/README.md b/questions/00016-medium-pop/README.md index 363bbc660..a6001bbee 100644 --- a/questions/00016-medium-pop/README.md +++ b/questions/00016-medium-pop/README.md @@ -16,4 +16,4 @@ type re2 = Pop // expected to be [3, 2] **Extra**: Similarly, can you implement `Shift`, `Push` and `Unshift` as well? -
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 15・Last of Array \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 15・Last of Array diff --git a/questions/00016-medium-pop/README.zh-CN.md b/questions/00016-medium-pop/README.zh-CN.md index 05d41bfcc..0bb672a86 100644 --- a/questions/00016-medium-pop/README.zh-CN.md +++ b/questions/00016-medium-pop/README.zh-CN.md @@ -18,4 +18,4 @@ type re2 = Pop // expected to be [3, 2] **额外**:同样,您也可以实现`Shift`,`Push`和`Unshift`吗? -
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 15・最后一个元素 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 15・最后一个元素 diff --git a/questions/00017-hard-currying-1/README.ja.md b/questions/00017-hard-currying-1/README.ja.md index 0ce15550d..55df35925 100644 --- a/questions/00017-hard-currying-1/README.ja.md +++ b/questions/00017-hard-currying-1/README.ja.md @@ -18,4 +18,4 @@ const five = curriedAdd(2)(3) この課題では、カリー化された関数は一度に 1 つの引数しか受け付けません。すべての引数が代入されたら、その結果を返す必要があります。 -
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 16・Pop 462・Currying 2 \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

14・First of Array 16・Pop 462・Currying 2 diff --git a/questions/00017-hard-currying-1/README.md b/questions/00017-hard-currying-1/README.md index 8a6286fd7..4dfd657bb 100644 --- a/questions/00017-hard-currying-1/README.md +++ b/questions/00017-hard-currying-1/README.md @@ -18,4 +18,4 @@ The function passed to `Currying` may have multiple arguments, you need to corre In this challenge, the curried function only accept one argument at a time. Once all the argument is assigned, it should return its result. -
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 16・Pop 462・Currying 2 +
Back Share your Solutions Check out Solutions

Related Challenges

14・First of Array 16・Pop 462・Currying 2 diff --git a/questions/00017-hard-currying-1/README.zh-CN.md b/questions/00017-hard-currying-1/README.zh-CN.md index ad48f4b95..144b50b92 100644 --- a/questions/00017-hard-currying-1/README.zh-CN.md +++ b/questions/00017-hard-currying-1/README.zh-CN.md @@ -20,4 +20,4 @@ const five = curriedAdd(2)(3) 在此挑战中,curried函数一次仅接受一个参数。分配完所有参数后,它应返回其结果。 -
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 16・出堆 462・柯里化 2 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

14・第一个元素 16・出堆 462・柯里化 2 diff --git a/questions/00057-hard-get-required/README.ja.md b/questions/00057-hard-get-required/README.ja.md index cc057b295..fcfe9728e 100644 --- a/questions/00057-hard-get-required/README.ja.md +++ b/questions/00057-hard-get-required/README.ja.md @@ -8,4 +8,4 @@ type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number } ``` -
戻る 解答を共有 解答を確認

関連する課題

59・Get Optional \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

59・Get Optional diff --git a/questions/00057-hard-get-required/README.md b/questions/00057-hard-get-required/README.md index 42b81abb4..35aa2d64e 100644 --- a/questions/00057-hard-get-required/README.md +++ b/questions/00057-hard-get-required/README.md @@ -9,4 +9,4 @@ type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: num ``` -
Back Share your Solutions Check out Solutions

Related Challenges

59・Get Optional \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

59・Get Optional diff --git a/questions/00057-hard-get-required/README.zh-CN.md b/questions/00057-hard-get-required/README.zh-CN.md index fe04d6403..0aa757acf 100644 --- a/questions/00057-hard-get-required/README.zh-CN.md +++ b/questions/00057-hard-get-required/README.zh-CN.md @@ -10,4 +10,4 @@ type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number } ``` -
返回首页 分享你的解答 查看解答

相关挑战

59・Get Optional \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

59・Get Optional diff --git a/questions/00059-hard-get-optional/README.ja.md b/questions/00059-hard-get-optional/README.ja.md index fcc5f2fd4..f3f3bc93e 100644 --- a/questions/00059-hard-get-optional/README.ja.md +++ b/questions/00059-hard-get-optional/README.ja.md @@ -8,4 +8,4 @@ type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: string } ``` -
戻る 解答を共有 解答を確認

関連する課題

57・Get Required \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

57・Get Required diff --git a/questions/00059-hard-get-optional/README.md b/questions/00059-hard-get-optional/README.md index f85e15d5b..6c8dbdc05 100644 --- a/questions/00059-hard-get-optional/README.md +++ b/questions/00059-hard-get-optional/README.md @@ -9,4 +9,4 @@ type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: st ``` -
Back Share your Solutions Check out Solutions

Related Challenges

57・Get Required \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

57・Get Required diff --git a/questions/00059-hard-get-optional/README.zh-CN.md b/questions/00059-hard-get-optional/README.zh-CN.md index 6af7301da..b14bafb27 100644 --- a/questions/00059-hard-get-optional/README.zh-CN.md +++ b/questions/00059-hard-get-optional/README.zh-CN.md @@ -10,4 +10,4 @@ type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: string } ``` -
返回首页 分享你的解答 查看解答

相关挑战

57・Get Required \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

57・Get Required diff --git a/questions/00089-hard-required-keys/README.ja.md b/questions/00089-hard-required-keys/README.ja.md index 84b06ce22..5b350c339 100644 --- a/questions/00089-hard-required-keys/README.ja.md +++ b/questions/00089-hard-required-keys/README.ja.md @@ -9,4 +9,4 @@ type Result = RequiredKeys<{ foo: number; bar?: string }>; // expected to be “foo” ``` -
戻る 解答を共有 解答を確認

関連する課題

5・Get Readonly Keys \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

5・Get Readonly Keys diff --git a/questions/00089-hard-required-keys/README.md b/questions/00089-hard-required-keys/README.md index 587181e72..9fb24ed7d 100644 --- a/questions/00089-hard-required-keys/README.md +++ b/questions/00089-hard-required-keys/README.md @@ -10,4 +10,4 @@ type Result = RequiredKeys<{ foo: number; bar?: string }>; ``` -
Back Share your Solutions Check out Solutions

Related Challenges

5・Get Readonly Keys \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

5・Get Readonly Keys diff --git a/questions/00089-hard-required-keys/README.zh-CN.md b/questions/00089-hard-required-keys/README.zh-CN.md index 74e0e7bad..ad2b5f21c 100644 --- a/questions/00089-hard-required-keys/README.zh-CN.md +++ b/questions/00089-hard-required-keys/README.zh-CN.md @@ -11,4 +11,4 @@ type Result = RequiredKeys<{ foo: number; bar?: string }>; // expected to be “foo” ``` -
返回首页 分享你的解答 查看解答

相关挑战

5・获取只读字段 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

5・获取只读字段 diff --git a/questions/00090-hard-optional-keys/README.ja.md b/questions/00090-hard-optional-keys/README.ja.md index 56e2181da..b295f15bd 100644 --- a/questions/00090-hard-optional-keys/README.ja.md +++ b/questions/00090-hard-optional-keys/README.ja.md @@ -2,4 +2,4 @@ オプショナルなキーの Union を抽出する高度なユーティリティ型 `OptionalKeys` を実装してください。 -
戻る 解答を共有 解答を確認

関連する課題

89・Required Keys 5・Get Readonly Keys \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

89・Required Keys 5・Get Readonly Keys diff --git a/questions/00090-hard-optional-keys/README.md b/questions/00090-hard-optional-keys/README.md index 554ba52bb..c887d5a86 100644 --- a/questions/00090-hard-optional-keys/README.md +++ b/questions/00090-hard-optional-keys/README.md @@ -3,4 +3,4 @@ Implement the advanced util type `OptionalKeys`, which picks all the optional keys into a union. -
Back Share your Solutions Check out Solutions

Related Challenges

89・Required Keys 5・Get Readonly Keys \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

89・Required Keys 5・Get Readonly Keys diff --git a/questions/00090-hard-optional-keys/README.zh-CN.md b/questions/00090-hard-optional-keys/README.zh-CN.md index 2338b01e2..bdd25195a 100644 --- a/questions/00090-hard-optional-keys/README.zh-CN.md +++ b/questions/00090-hard-optional-keys/README.zh-CN.md @@ -4,4 +4,4 @@ 实现高级util类型`OptionalKeys`,该类型将所有可选键合并为一个并集。 -
返回首页 分享你的解答 查看解答

相关挑战

89・Required Keys 5・获取只读字段 \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

89・Required Keys 5・获取只读字段 diff --git a/questions/00106-medium-trimleft/README.ja.md b/questions/00106-medium-trimleft/README.ja.md index 125b069c0..44af1e2f6 100644 --- a/questions/00106-medium-trimleft/README.ja.md +++ b/questions/00106-medium-trimleft/README.ja.md @@ -9,4 +9,4 @@ type trimed = TrimLeft<' Hello World '> // expected to be 'Hello World ' ``` -
戻る 解答を共有 解答を確認

関連する課題

108・Trim 4803・Trim Right +
戻る 解答を共有 解答を確認

関連する課題

108・Trim 4803・Trim Right diff --git a/questions/00106-medium-trimleft/README.md b/questions/00106-medium-trimleft/README.md index 4be41dd41..a42543214 100644 --- a/questions/00106-medium-trimleft/README.md +++ b/questions/00106-medium-trimleft/README.md @@ -9,4 +9,4 @@ type trimed = TrimLeft<' Hello World '> // expected to be 'Hello World ' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

108・Trim 4803・Trim Right +
Back Share your Solutions Check out Solutions

Related Challenges

108・Trim 4803・Trim Right diff --git a/questions/00106-medium-trimleft/README.zh-CN.md b/questions/00106-medium-trimleft/README.zh-CN.md index 7d1224380..357a9427d 100644 --- a/questions/00106-medium-trimleft/README.zh-CN.md +++ b/questions/00106-medium-trimleft/README.zh-CN.md @@ -8,4 +8,4 @@ type trimed = TrimLeft<' Hello World '> // 应推导出 'Hello World ' ``` -
返回首页 分享你的解答 查看解答

相关挑战

108・Trim 4803・Trim Right +
返回首页 分享你的解答 查看解答

相关挑战

108・Trim 4803・Trim Right diff --git a/questions/00108-medium-trim/README.ja.md b/questions/00108-medium-trim/README.ja.md index 2418106fb..15ae02e97 100644 --- a/questions/00108-medium-trim/README.ja.md +++ b/questions/00108-medium-trim/README.ja.md @@ -9,4 +9,4 @@ type trimed = Trim<' Hello World '> // expected to be 'Hello World' ``` -
戻る 解答を共有 解答を確認

関連する課題

106・Trim Left 4803・Trim Right +
戻る 解答を共有 解答を確認

関連する課題

106・Trim Left 4803・Trim Right diff --git a/questions/00108-medium-trim/README.md b/questions/00108-medium-trim/README.md index 49e4b66d3..616c41e98 100644 --- a/questions/00108-medium-trim/README.md +++ b/questions/00108-medium-trim/README.md @@ -9,4 +9,4 @@ type trimmed = Trim<' Hello World '> // expected to be 'Hello World' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 4803・Trim Right +
Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 4803・Trim Right diff --git a/questions/00108-medium-trim/README.zh-CN.md b/questions/00108-medium-trim/README.zh-CN.md index 88c99e152..1698be346 100644 --- a/questions/00108-medium-trim/README.zh-CN.md +++ b/questions/00108-medium-trim/README.zh-CN.md @@ -9,5 +9,5 @@ type trimed = Trim<' Hello World '> // expected to be 'Hello World' ``` -
返回首页 分享你的解答 查看解答

相关挑战

106・Trim Left 4803・Trim Right +
返回首页 分享你的解答 查看解答

相关挑战

106・Trim Left 4803・Trim Right diff --git a/questions/00114-hard-camelcase/README.ja.md b/questions/00114-hard-camelcase/README.ja.md index 6884d71a6..c3405b8c0 100644 --- a/questions/00114-hard-camelcase/README.ja.md +++ b/questions/00114-hard-camelcase/README.ja.md @@ -10,4 +10,4 @@ type camelCase2 = CamelCase<'HELLO_WORLD_WITH_TYPES'> // expected to be same as ``` -
戻る 解答を共有 解答を確認

関連する課題

610・CamelCase 612・KebabCase +
戻る 解答を共有 解答を確認

関連する課題

610・CamelCase 612・KebabCase diff --git a/questions/00114-hard-camelcase/README.md b/questions/00114-hard-camelcase/README.md index 2621c5d46..17f8ae2ec 100644 --- a/questions/00114-hard-camelcase/README.md +++ b/questions/00114-hard-camelcase/README.md @@ -10,4 +10,4 @@ type camelCase2 = CamelCase<'HELLO_WORLD_WITH_TYPES'> // expected to be same as ``` -
Back Share your Solutions Check out Solutions

Related Challenges

610・CamelCase 612・KebabCase +
Back Share your Solutions Check out Solutions

Related Challenges

610・CamelCase 612・KebabCase diff --git a/questions/00213-hard-vue-basic-props/README.ja.md b/questions/00213-hard-vue-basic-props/README.ja.md index 7d9896b02..2f38b876d 100644 --- a/questions/00213-hard-vue-basic-props/README.ja.md +++ b/questions/00213-hard-vue-basic-props/README.ja.md @@ -41,4 +41,4 @@ type Props = { foo: boolean | number | string } >Vue の `required`, `default`, そして 配列の props はこの問題において考慮されておりません. -
戻る 解答を共有 解答を確認

関連する課題

6・Simple Vue \ No newline at end of file +
戻る 解答を共有 解答を確認

関連する課題

6・Simple Vue diff --git a/questions/00213-hard-vue-basic-props/README.md b/questions/00213-hard-vue-basic-props/README.md index e2daf6e8c..0f8a95667 100644 --- a/questions/00213-hard-vue-basic-props/README.md +++ b/questions/00213-hard-vue-basic-props/README.md @@ -39,4 +39,4 @@ For more specified cases, check out the Test Cases section. > `required`, `default`, and array props in Vue are not considered in this challenge. -
Back Share your Solutions Check out Solutions

Related Challenges

6・Simple Vue \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

6・Simple Vue diff --git a/questions/00223-hard-isany/README.ja.md b/questions/00223-hard-isany/README.ja.md index 1b2535c87..61eb5fff4 100644 --- a/questions/00223-hard-isany/README.ja.md +++ b/questions/00223-hard-isany/README.ja.md @@ -5,4 +5,4 @@ そこで、型`T`を受け取るユーティリティ型`IsAny`を書いてみましょう。`T`が`any`型であれば`true`を返し、そうでなければ`false`を返します。 -
戻る 解答を共有 解答を確認

関連する課題

1042・IsNever 1097・IsUnion 4484・IsTuple +
戻る 解答を共有 解答を確認

関連する課題

1042・IsNever 1097・IsUnion 4484・IsTuple diff --git a/questions/00223-hard-isany/README.md b/questions/00223-hard-isany/README.md index 3a553195e..12cbec726 100644 --- a/questions/00223-hard-isany/README.md +++ b/questions/00223-hard-isany/README.md @@ -5,4 +5,4 @@ Sometimes it's useful to detect if you have a value with `any` type. This is esp So, let's write a utility type `IsAny`, which takes input type `T`. If `T` is `any`, return `true`, otherwise, return `false`. -
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 4484・IsTuple \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 4484・IsTuple diff --git a/questions/00462-extreme-currying-2/README.md b/questions/00462-extreme-currying-2/README.md index 6b2337d36..d4d43e52b 100644 --- a/questions/00462-extreme-currying-2/README.md +++ b/questions/00462-extreme-currying-2/README.md @@ -29,4 +29,4 @@ const eight = curriedAdd(2)(3)(4) In this challenge, `DynamicParamsCurrying` may take a function with zero to multiple arguments, you need to correctly type it. The returned function may accept at least one argument. When all the arguments as satisfied, it should yield the return type of the original function correctly. -
Back Share your Solutions Check out Solutions

Related Challenges

17・Currying 1 +
Back Share your Solutions Check out Solutions

Related Challenges

17・Currying 1 diff --git a/questions/00462-extreme-currying-2/README.zh-CN.md b/questions/00462-extreme-currying-2/README.zh-CN.md index 390de252d..a947433dc 100644 --- a/questions/00462-extreme-currying-2/README.zh-CN.md +++ b/questions/00462-extreme-currying-2/README.zh-CN.md @@ -31,4 +31,4 @@ const eight = curriedAdd(2)(3)(4) 在此挑战中,curriedAdd函数每次可接受最少一个参数,但是所有参数个数总和及类型与原函数相同。分配完所有参数后,它应返回其结果。 -
返回首页 分享你的解答 查看解答

相关挑战

17・柯里化 1 +
返回首页 分享你的解答 查看解答

相关挑战

17・柯里化 1 diff --git a/questions/00472-hard-tuple-to-enum-object/README.ja.md b/questions/00472-hard-tuple-to-enum-object/README.ja.md index 47283b2fe..3fdbd374d 100644 --- a/questions/00472-hard-tuple-to-enum-object/README.ja.md +++ b/questions/00472-hard-tuple-to-enum-object/README.ja.md @@ -26,4 +26,4 @@ Enum<["macOS", "Windows", "Linux"], true> // -> { readonly MacOS: 0, readonly Windows: 1, readonly Linux: 2 } ``` -
戻る 解答を共有 解答を確認

関連する課題

10・Tuple to Union 11・Tuple to Object 730・Union to Tuple 3188・Tuple to Nested Object +
戻る 解答を共有 解答を確認

関連する課題

10・Tuple to Union 11・Tuple to Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00472-hard-tuple-to-enum-object/README.md b/questions/00472-hard-tuple-to-enum-object/README.md index ec2b4ee24..f59085ba2 100644 --- a/questions/00472-hard-tuple-to-enum-object/README.md +++ b/questions/00472-hard-tuple-to-enum-object/README.md @@ -22,4 +22,4 @@ Enum<["macOS", "Windows", "Linux"], true> ``` -
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 730・Union to Tuple 3188・Tuple to Nested Object \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 730・Union to Tuple 3188・Tuple to Nested Object diff --git a/questions/00517-extreme-multiply/README.md b/questions/00517-extreme-multiply/README.md index f9a61a27e..18abf87fc 100644 --- a/questions/00517-extreme-multiply/README.md +++ b/questions/00517-extreme-multiply/README.md @@ -16,4 +16,4 @@ type T5 = Multiply<'43423', 321543n> // '13962361689' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

476・Sum \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

476・Sum diff --git a/questions/00533-easy-concat/README.ja.md b/questions/00533-easy-concat/README.ja.md index 15e9146e2..b7041ab30 100644 --- a/questions/00533-easy-concat/README.ja.md +++ b/questions/00533-easy-concat/README.ja.md @@ -8,4 +8,4 @@ JavaScript の`Array.concat`関数を型システムに実装します。この type Result = Concat<[1], [2]>; // expected to be [1, 2] ``` -
戻る 解答を共有 解答を確認

関連する課題

3057・Push 3060・Unshift +
戻る 解答を共有 解答を確認

関連する課題

3057・Push 3060・Unshift diff --git a/questions/00533-easy-concat/README.ko.md b/questions/00533-easy-concat/README.ko.md index fcf41f15a..cff8b72d2 100644 --- a/questions/00533-easy-concat/README.ko.md +++ b/questions/00533-easy-concat/README.ko.md @@ -9,4 +9,4 @@ type Result = Concat<[1], [2]> // expected to be [1, 2] ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

3057・Push 3060・Unshift +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

3057・Push 3060・Unshift diff --git a/questions/00533-easy-concat/README.md b/questions/00533-easy-concat/README.md index a94dbf974..7adc8ef22 100644 --- a/questions/00533-easy-concat/README.md +++ b/questions/00533-easy-concat/README.md @@ -9,4 +9,4 @@ type Result = Concat<[1], [2]> // expected to be [1, 2] ``` -
Back Share your Solutions Check out Solutions

Related Challenges

3057・Push 3060・Unshift +
Back Share your Solutions Check out Solutions

Related Challenges

3057・Push 3060・Unshift diff --git a/questions/00533-easy-concat/README.zh-CN.md b/questions/00533-easy-concat/README.zh-CN.md index 8d5757a93..fea467309 100644 --- a/questions/00533-easy-concat/README.zh-CN.md +++ b/questions/00533-easy-concat/README.zh-CN.md @@ -10,4 +10,4 @@ type Result = Concat<[1], [2]> // expected to be [1, 2] -
返回首页 分享你的解答 查看解答

相关挑战

3057・Push 3060・Unshift +
返回首页 分享你的解答 查看解答

相关挑战

3057・Push 3060・Unshift diff --git a/questions/00545-hard-printf/README.ja.md b/questions/00545-hard-printf/README.ja.md index 416a1a142..08e38104d 100644 --- a/questions/00545-hard-printf/README.ja.md +++ b/questions/00545-hard-printf/README.ja.md @@ -1,4 +1,4 @@ -

printf 上級 #template-literal

by null @BestMaster-YS

挑戦する    English

+

printf 上級 #template-literal

by null @Bestmain-YS

挑戦する    English

汎用的な`Format`を実装します。 diff --git a/questions/00545-hard-printf/README.md b/questions/00545-hard-printf/README.md index ce6faec3d..eb23e1831 100644 --- a/questions/00545-hard-printf/README.md +++ b/questions/00545-hard-printf/README.md @@ -1,4 +1,4 @@ -

printf hard #template-literal

by null @BestMaster-YS

Take the Challenge    日本語

+

printf hard #template-literal

by null @Bestmain-YS

Take the Challenge    日本語

Implement `Format` generic. @@ -12,4 +12,4 @@ type FormatCase4 = Format<"sd%abc"> // FormatCase4 : string ``` -
Back Share your Solutions Check out Solutions \ No newline at end of file +
Back Share your Solutions Check out Solutions diff --git a/questions/00545-hard-printf/info.yml b/questions/00545-hard-printf/info.yml index 474c5e07a..b35cdff78 100644 --- a/questions/00545-hard-printf/info.yml +++ b/questions/00545-hard-printf/info.yml @@ -2,5 +2,5 @@ difficulty: hard title: printf tags: template-literal author: - github: BestMaster-YS + github: Bestmain-YS name: null diff --git a/questions/00610-medium-camelcase/README.md b/questions/00610-medium-camelcase/README.md index 0f9c5fb59..4b83888fd 100644 --- a/questions/00610-medium-camelcase/README.md +++ b/questions/00610-medium-camelcase/README.md @@ -3,4 +3,4 @@ `for-bar-baz` -> `forBarBaz` -
Back Share your Solutions Check out Solutions

Related Challenges

612・KebabCase 114・CamelCase \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

612・KebabCase 114・CamelCase diff --git a/questions/00612-medium-kebabcase/README.md b/questions/00612-medium-kebabcase/README.md index 80dffb57d..9353d235f 100644 --- a/questions/00612-medium-kebabcase/README.md +++ b/questions/00612-medium-kebabcase/README.md @@ -3,4 +3,4 @@ `FooBarBaz` -> `foo-bar-baz` -
Back Share your Solutions Check out Solutions

Related Challenges

610・CamelCase 114・CamelCase +
Back Share your Solutions Check out Solutions

Related Challenges

610・CamelCase 114・CamelCase diff --git a/questions/00651-hard-length-of-string-2/README.ja.md b/questions/00651-hard-length-of-string-2/README.ja.md index a5b482dad..adbacb666 100644 --- a/questions/00651-hard-length-of-string-2/README.ja.md +++ b/questions/00651-hard-length-of-string-2/README.ja.md @@ -8,4 +8,4 @@ type T0 = LengthOfString<'foo'>; // 3 この課題で実装する型は、数百文字の長さの文字列をサポートしなければなりません(通常の再帰的な文字列長の計算は、TS の再帰的な関数呼び出しの深さによって制限されています、つまり、45 文字程度までの文字列をサポートしています)。 -
戻る 解答を共有 解答を確認

関連する課題

298・Length of String +
戻る 解答を共有 解答を確認

関連する課題

298・Length of String diff --git a/questions/00651-hard-length-of-string-2/README.md b/questions/00651-hard-length-of-string-2/README.md index 9115d9e4b..7acd7e569 100644 --- a/questions/00651-hard-length-of-string-2/README.md +++ b/questions/00651-hard-length-of-string-2/README.md @@ -9,4 +9,4 @@ type T0 = LengthOfString<"foo"> // 3 The type must support strings several hundred characters long (the usual recursive calculation of the string length is limited by the depth of recursive function calls in TS, that is, it supports strings up to about 45 characters long). -
Back Share your Solutions Check out Solutions

Related Challenges

298・Length of String \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

298・Length of String diff --git a/questions/00730-hard-union-to-tuple/README.md b/questions/00730-hard-union-to-tuple/README.md index 52ea719c6..4189cf4d4 100644 --- a/questions/00730-hard-union-to-tuple/README.md +++ b/questions/00730-hard-union-to-tuple/README.md @@ -30,4 +30,4 @@ Equal, UnionToTuple<'a'>> // will always b ``` -
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 55・Union to Intersection 472・Tuple to Enum Object 3188・Tuple to Nested Object \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 55・Union to Intersection 472・Tuple to Enum Object 3188・Tuple to Nested Object diff --git a/questions/01042-medium-isnever/README.md b/questions/01042-medium-isnever/README.md index b09ec7cfe..392e0953e 100644 --- a/questions/01042-medium-isnever/README.md +++ b/questions/01042-medium-isnever/README.md @@ -14,4 +14,4 @@ type E = IsNever // expected to be false ``` -
Back Share your Solutions Check out Solutions

Related Challenges

1097・IsUnion 223・IsAny 4484・IsTuple +
Back Share your Solutions Check out Solutions

Related Challenges

1097・IsUnion 223・IsAny 4484・IsTuple diff --git a/questions/01097-medium-isunion/README.md b/questions/01097-medium-isunion/README.md index 8567d1771..0f9831b05 100644 --- a/questions/01097-medium-isunion/README.md +++ b/questions/01097-medium-isunion/README.md @@ -11,4 +11,4 @@ For example: ``` -
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 223・IsAny 4484・IsTuple \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 223・IsAny 4484・IsTuple diff --git a/questions/02059-hard-drop-string/README.md b/questions/02059-hard-drop-string/README.md index 7104513e7..47022d06e 100644 --- a/questions/02059-hard-drop-string/README.md +++ b/questions/02059-hard-drop-string/README.md @@ -9,4 +9,4 @@ type Butterfly = DropString<'foobar!', 'fb'> // 'ooar!' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2070・Drop Char +
Back Share your Solutions Check out Solutions

Related Challenges

2070・Drop Char diff --git a/questions/02070-medium-drop-char/README.md b/questions/02070-medium-drop-char/README.md index 882aed112..4d8e2f15c 100644 --- a/questions/02070-medium-drop-char/README.md +++ b/questions/02070-medium-drop-char/README.md @@ -9,4 +9,4 @@ type Butterfly = DropChar<' b u t t e r f l y ! ', ' '> // 'butterfly!' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2059・Drop String \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

2059・Drop String diff --git a/questions/02595-medium-pickbytype/README.md b/questions/02595-medium-pickbytype/README.md index d36da8a65..0dc830b51 100644 --- a/questions/02595-medium-pickbytype/README.md +++ b/questions/02595-medium-pickbytype/README.md @@ -14,4 +14,4 @@ type OnlyBoolean = PickByType<{ ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2852・OmitByType \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

2852・OmitByType diff --git a/questions/02688-medium-startswith/README.md b/questions/02688-medium-startswith/README.md index 74c9f27f5..27c07ae7f 100644 --- a/questions/02688-medium-startswith/README.md +++ b/questions/02688-medium-startswith/README.md @@ -11,4 +11,4 @@ type c = StartsWith<'abc', 'abcd'> // expected to be false ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2693・EndsWith \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

2693・EndsWith diff --git a/questions/02693-medium-endswith/README.md b/questions/02693-medium-endswith/README.md index c23816144..3132a563f 100644 --- a/questions/02693-medium-endswith/README.md +++ b/questions/02693-medium-endswith/README.md @@ -3,4 +3,4 @@ Implement `EndsWith` which takes two exact string types and returns whether `T` ends with `U` -
Back Share your Solutions Check out Solutions

Related Challenges

2688・StartsWith \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

2688・StartsWith diff --git a/questions/02852-medium-omitbytype/README.md b/questions/02852-medium-omitbytype/README.md index ba03456d1..3e1545b40 100644 --- a/questions/02852-medium-omitbytype/README.md +++ b/questions/02852-medium-omitbytype/README.md @@ -14,4 +14,4 @@ type OmitBoolean = OmitByType<{ ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2595・PickByType +
Back Share your Solutions Check out Solutions

Related Challenges

2595・PickByType diff --git a/questions/02949-hard-objectfromentries/README.md b/questions/02949-hard-objectfromentries/README.md index 43ee14d5a..386e9a9c7 100644 --- a/questions/02949-hard-objectfromentries/README.md +++ b/questions/02949-hard-objectfromentries/README.md @@ -17,4 +17,4 @@ type result = ObjectFromEntries // expected to be Model ``` -
Back Share your Solutions Check out Solutions

Related Challenges

55・Union to Intersection \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

55・Union to Intersection diff --git a/questions/03057-easy-push/README.ko.md b/questions/03057-easy-push/README.ko.md index 620698681..60477224e 100644 --- a/questions/03057-easy-push/README.ko.md +++ b/questions/03057-easy-push/README.ko.md @@ -9,4 +9,4 @@ type Result = Push<[1, 2], '3'> // [1, 2, '3'] ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

533・Concat 3060・Unshift \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

533・Concat 3060・Unshift diff --git a/questions/03057-easy-push/README.md b/questions/03057-easy-push/README.md index 428f9b471..1852ac655 100644 --- a/questions/03057-easy-push/README.md +++ b/questions/03057-easy-push/README.md @@ -9,4 +9,4 @@ type Result = Push<[1, 2], '3'> // [1, 2, '3'] ``` -
Back Share your Solutions Check out Solutions

Related Challenges

533・Concat 3060・Unshift \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

533・Concat 3060・Unshift diff --git a/questions/03057-easy-push/README.zh-CN.md b/questions/03057-easy-push/README.zh-CN.md index 0ebe40cf9..62197fd2f 100644 --- a/questions/03057-easy-push/README.zh-CN.md +++ b/questions/03057-easy-push/README.zh-CN.md @@ -9,4 +9,4 @@ type Result = Push<[1, 2], '3'> // [1, 2, '3'] ``` -
返回首页 分享你的解答 查看解答

相关挑战

533・Concat 3060・Unshift \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

533・Concat 3060・Unshift diff --git a/questions/03060-easy-unshift/README.ko.md b/questions/03060-easy-unshift/README.ko.md index 4dfd4f5f2..72d8dcae2 100644 --- a/questions/03060-easy-unshift/README.ko.md +++ b/questions/03060-easy-unshift/README.ko.md @@ -9,4 +9,4 @@ type Result = Unshift<[1, 2], 0> // [0, 1, 2,] ``` -
돌아가기 정답 공유하기 정답 보기

관련된 문제들

533・Concat 3057・Push \ No newline at end of file +
돌아가기 정답 공유하기 정답 보기

관련된 문제들

533・Concat 3057・Push diff --git a/questions/03060-easy-unshift/README.md b/questions/03060-easy-unshift/README.md index eebb792d5..8a47fc5d3 100644 --- a/questions/03060-easy-unshift/README.md +++ b/questions/03060-easy-unshift/README.md @@ -9,4 +9,4 @@ type Result = Unshift<[1, 2], 0> // [0, 1, 2,] ``` -
Back Share your Solutions Check out Solutions

Related Challenges

533・Concat 3057・Push \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

533・Concat 3057・Push diff --git a/questions/03060-easy-unshift/README.zh-CN.md b/questions/03060-easy-unshift/README.zh-CN.md index d1f2f4480..4cd6174f5 100644 --- a/questions/03060-easy-unshift/README.zh-CN.md +++ b/questions/03060-easy-unshift/README.zh-CN.md @@ -9,4 +9,4 @@ type Result = Unshift<[1, 2], 0> // [0, 1, 2,] ``` -
返回首页 分享你的解答 查看解答

相关挑战

533・Concat 3057・Push \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

533・Concat 3057・Push diff --git a/questions/03062-medium-shift/README.md b/questions/03062-medium-shift/README.md index a393a5922..36585b9f6 100644 --- a/questions/03062-medium-shift/README.md +++ b/questions/03062-medium-shift/README.md @@ -9,4 +9,4 @@ type Result = Shift<[3, 2, 1]> // [2, 1] ``` -
Back Share your Solutions Check out Solutions

Related Challenges

16・Pop \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

16・Pop diff --git a/questions/03188-medium-tuple-to-nested-object/README.md b/questions/03188-medium-tuple-to-nested-object/README.md index ec3a9c0b9..ba2062d77 100644 --- a/questions/03188-medium-tuple-to-nested-object/README.md +++ b/questions/03188-medium-tuple-to-nested-object/README.md @@ -9,4 +9,4 @@ type c = TupleToNestedObject<[], boolean> // boolean. if the tuple is empty, jus ``` -
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

10・Tuple to Union 11・Tuple to Object 472・Tuple to Enum Object 730・Union to Tuple diff --git a/questions/03196-medium-flip-arguments/README.md b/questions/03196-medium-flip-arguments/README.md index cb05ced0a..2638ab0b9 100644 --- a/questions/03196-medium-flip-arguments/README.md +++ b/questions/03196-medium-flip-arguments/README.md @@ -12,4 +12,4 @@ type Flipped = FlipArguments<(arg0: string, arg1: number, arg2: boolean) => void ``` -
Back Share your Solutions Check out Solutions

Related Challenges

3192・Reverse \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

3192・Reverse diff --git a/questions/03243-medium-flattendepth/README.md b/questions/03243-medium-flattendepth/README.md index b2e65a6ec..6d632493f 100644 --- a/questions/03243-medium-flattendepth/README.md +++ b/questions/03243-medium-flattendepth/README.md @@ -12,4 +12,4 @@ type b = FlattenDepth<[1, 2, [3, 4], [[[5]]]]> // [1, 2, 3, 4, [[5]]]. Depth def If the depth is provided, it's guaranteed to be positive integer. -
Back Share your Solutions Check out Solutions

Related Challenges

459・Flatten \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

459・Flatten diff --git a/questions/04484-medium-istuple/README.md b/questions/04484-medium-istuple/README.md index 95806319f..8f8de7730 100644 --- a/questions/04484-medium-istuple/README.md +++ b/questions/04484-medium-istuple/README.md @@ -11,4 +11,4 @@ type case3 = IsTuple // false ``` -
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 223・IsAny \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 223・IsAny diff --git a/questions/04803-medium-trim-right/README.md b/questions/04803-medium-trim-right/README.md index 6bff705b7..61d174069 100644 --- a/questions/04803-medium-trim-right/README.md +++ b/questions/04803-medium-trim-right/README.md @@ -9,4 +9,4 @@ type Trimed = TrimRight<' Hello World '> // expected to be ' Hello World' ``` -
Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 108・Trim \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 108・Trim diff --git a/questions/04803-medium-trim-right/README.zh-CN.md b/questions/04803-medium-trim-right/README.zh-CN.md index 5bbc51570..e4a33a340 100644 --- a/questions/04803-medium-trim-right/README.zh-CN.md +++ b/questions/04803-medium-trim-right/README.zh-CN.md @@ -9,4 +9,4 @@ type Trimed = TrimLeft<' Hello World '> // 应推导出 ' Hello World' ``` -
返回首页 分享你的解答 查看解答

相关挑战

106・Trim Left 108・Trim \ No newline at end of file +
返回首页 分享你的解答 查看解答

相关挑战

106・Trim Left 108・Trim diff --git a/questions/05181-hard-mutable-keys/README.md b/questions/05181-hard-mutable-keys/README.md index 36539b5e7..779c79fef 100644 --- a/questions/05181-hard-mutable-keys/README.md +++ b/questions/05181-hard-mutable-keys/README.md @@ -10,4 +10,4 @@ type Keys = MutableKeys<{ readonly foo: string; bar: number }>; ``` -
Back Share your Solutions Check out Solutions

Related Challenges

2793・Mutable \ No newline at end of file +
Back Share your Solutions Check out Solutions

Related Challenges

2793・Mutable diff --git a/scripts/actions/issue-pr.ts b/scripts/actions/issue-pr.ts index 9e6bdd0f0..ed6bdb5c1 100644 --- a/scripts/actions/issue-pr.ts +++ b/scripts/actions/issue-pr.ts @@ -143,7 +143,7 @@ const action: Action = async(github, context, core) => { await PushCommit(github, { owner: context.repo.owner, repo: context.repo.repo, - base: 'master', + base: 'main', head: `pulls/${no}`, changes: { files, @@ -185,7 +185,7 @@ const action: Action = async(github, context, core) => { const { data: pr } = await github.rest.pulls.create({ owner: context.repo.owner, repo: context.repo.repo, - base: 'master', + base: 'main', head: `pulls/${no}`, title: `#${no} - ${info.title}`, body: `This is an auto-generated PR that auto reflect on #${no}, please go to #${no} for discussion or making changes.\n\nCloses #${no}`, diff --git a/scripts/build.ts b/scripts/build.ts index 44a76cc2e..8f83f0d1b 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -11,7 +11,7 @@ export async function build() { // redirect homepage to github repo supportedLocales.filter(locale => locale !== defaultLocale).forEach((locale) => { - redirects.push([`/${locale}`, `${REPO}/blob/master/README.${locale}.md`, 302]) + redirects.push([`/${locale}`, `${REPO}/blob/main/README.${locale}.md`, 302]) }) supportedLocales.forEach((locale) => { diff --git a/scripts/toUrl.ts b/scripts/toUrl.ts index 64ad88bcf..0422d69cc 100644 --- a/scripts/toUrl.ts +++ b/scripts/toUrl.ts @@ -21,7 +21,7 @@ export function toSolutionsFull(no: number) { } export function toQuizREADME(quiz: Quiz, locale?: string, absolute = false) { - const prefix = absolute ? `${REPO}/blob/master` : '.' + const prefix = absolute ? `${REPO}/blob/main` : '.' return locale && locale !== defaultLocale && quiz.readme[locale] ? `${prefix}/questions/${quiz.path}/README.${locale}.md` : `${prefix}/questions/${quiz.path}/README.md` @@ -29,7 +29,7 @@ export function toQuizREADME(quiz: Quiz, locale?: string, absolute = false) { export function toRawREADME(quiz: Quiz, locale?: string) { const provider = 'https://cdn.jsdelivr.net/gh/type-challenges/type-challenges' - // const provider = 'https://raw.githubusercontent.com/type-challenges/type-challenges/master' + // const provider = 'https://raw.githubusercontent.com/type-challenges/type-challenges/main' return locale && locale !== defaultLocale && quiz.readme[locale] ? `${provider}/questions/${quiz.path}/README.${locale}.md` : `${provider}/questions/${quiz.path}/README.md`