forked from type-challenges/type-challenges
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i18n: add Japanese answer and new template (type-challenges#219)
- Loading branch information
1 parent
47ec734
commit 49b53cc
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: 🇯🇵 解答 | ||
about: 解答/質問への回答の共有。 | ||
title: "no - " | ||
labels: answer, ja | ||
--- | ||
|
||
<!-- | ||
注釈: | ||
🎉 課題の解決おめでとうございます。解答の共有嬉しいです! | ||
ただ、ユーザー数の増加により、issueはすぐに解答で満たされてしまいます。 | ||
解答を送る前に、既に類似の解答が投稿されていないか確認してください。それらに、リアクションを送ったり、コメントを残すことも出来ます。もし、あなたの解答がユニークなものだったら遠慮せずにissueを作成して他の人に共有してください。この課題の解決方法についてのアイディアや考えを共有することは大歓迎です。 | ||
--> | ||
|
||
```ts | ||
// 解答をここに記入 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: 🇯🇵 新しい課題 | ||
about: 新しい課題の提案をするとPRが自動生成されます。 | ||
title: "" | ||
labels: new-challenge, ja | ||
--- | ||
|
||
> テンプレートに従って内容を記入してください。PRは自動生成され、常にあなたの変更が反映されます。 | ||
> | ||
> 詳細な解答/ガイドは必要ありませんが、課題が解決可能であることを確認してください。 | ||
## 基本情報 | ||
|
||
```yaml | ||
# 難易度 | ||
difficulty: easy # medium / hard / extreme | ||
|
||
# タイトル | ||
title: 課題のタイトル | ||
|
||
# タグ | ||
#tags: union, array # separate by comma | ||
``` | ||
|
||
## 質問 | ||
|
||
<!--question-start--> | ||
|
||
あなたの課題の質問文を、いくつかのサンプルコードと一緒に記入してください。ここではMarkdownがサポートされています。 | ||
|
||
<!--question-end--> | ||
|
||
## テンプレート | ||
|
||
課題の挑戦者がコーディングを始める際のテンプレートです。基本的には質問とテストに合わせて型の名前を変更して、実装は `any` とするだけです。 | ||
|
||
```ts | ||
type YourType = any | ||
``` | ||
## テストケース | ||
あなたの課題のテストケースです。`@type-challenges/utils`が提供するいくつかのアサーションを使うことが出来ます。 | ||
```ts | ||
import { Equal, Expect, ExpectFalse, NotEqual } from '@type-challenges/utils' | ||
|
||
type cases = [ | ||
Expect<Equal<true, true>> | ||
] | ||
``` |