MCPcopy
hub / github.com/type-challenges/type-challenges

github.com/type-challenges/type-challenges @main sqlite

repository ↗ · DeepWiki ↗
134 symbols 454 edges 403 files 1 documented · 1%
README

TypeScript 型パズル集

English | 简体中文 | 日本語 | 한국어 | Português

はじめに

TypeScript のチューリング完全な型システムの力で

高品質な型は潜在的なバグを回避しつつ、プロジェクトの保守性を向上させるのに役立ちます。

このプロジェクトはUtility型を作るにあたって、型システムがどのように動くのかを理解する手助けを目的としています。あるいは、純粋に型パズルを楽しむのもよいです。また私たちは、みんなが実際に直面している問題を共有し、解決策を得るためのコミュニティを形成しようとしています。- そして、その問題と解決策は、新たな型パズルになるかもしれません!

あなたはtype-festをはじめとした、既存の多くのUtilityライブラリを扱うこともできます。他にも安定した(しかし現在は積極的にメンテナンスされていない)utility-types, ts-toolbelt, SimplyTypedのようなパッケージを参照することもできます。

課題集

以下のバッジをクリックすると、課題の詳細が表示されます。

1

13・Hello World

13

4・Pick 7・Readonly 11・Tuple to Object 14・First of Array 18・Length of Tuple 43・Exclude 189・Awaited 268・If 533・Concat 898・Includes 3057・Push 3060・Unshift 3312・Parameters

104

2・Get Return Type 3・Omit 8・Readonly 2 9・Deep Readonly 10・Tuple to Union 12・Chainable Options 15・Last of Array 16・Pop 20・Promise.all 62・Type Lookup 106・Trim Left 108・Trim 110・Capitalize 116・Replace 119・ReplaceAll 191・Append Argument 296・Permutation 298・Length of String 459・Flatten 527・Append to object 529・Absolute 531・String to Union 599・Merge 612・KebabCase 645・Diff 949・AnyOf 1042・IsNever 1097・IsUnion 1130・ReplaceKeys 1367・Remove Index Signature 1978・Percentage Parser 2070・Drop Char 2257・MinusOne 2595・PickByType 2688・StartsWith 2693・EndsWith 2757・PartialByKeys 2759・RequiredByKeys 2793・Mutable 2852・OmitByType 2946・ObjectEntries 3062・Shift 3188・Tuple to Nested Object 3192・Reverse 3196・Flip Arguments 3243・FlattenDepth 3326・BEM style string 3376・InorderTraversal 4179・Flip 4182・Fibonacci Sequence 4260・文字の組み合わせ 4425・Greater Than 4471・Zip 4484・IsTuple 4499・Chunk 4518・Fill 4803・Trim Right 5117・Without <a href="./questions

Extension points exported contracts — how you extend this code

I (Interface)
* Tests of assignable of tagged variables.
questions/00697-extreme-tag/test-cases.ts
User (Interface)
(no doc)
questions/02759-medium-requiredbykeys/test-cases.ts
Model (Interface)
(no doc)
questions/02852-medium-omitbytype/test-cases.ts
Test1 (Interface)
(no doc)
questions/17973-medium-deepmutable/test-cases.ts
Todo1 (Interface)
(no doc)
questions/02793-medium-mutable/test-cases.ts
Cat (Interface)
(no doc)
questions/00062-medium-type-lookup/test-cases.ts
Todo1 (Interface)
(no doc)
questions/00008-medium-readonly-2/test-cases.ts
Model (Interface)
(no doc)
questions/02949-hard-objectfromentries/test-cases.ts

Core symbols most depended-on inside this repo

t
called by 21
scripts/locales.ts
uniqueItems
called by 12
questions/30178-hard-unique-items/template.ts
assertArrayIndex
called by 9
questions/00925-extreme-assert-array-index/template.ts
resolveInfo
called by 7
scripts/loader.ts
toBadgeLink
called by 6
scripts/readme.ts
toBadge
called by 5
scripts/readme.ts
loadFile
called by 4
scripts/loader.ts
loadQuizzes
called by 4
scripts/loader.ts

Shape

Function 94
Interface 33
Class 4
Method 2
Enum 1

Languages

TypeScript100%

Modules by API surface

scripts/readme.ts18 symbols
scripts/toUrl.ts12 symbols
scripts/loader.ts8 symbols
scripts/actions/issue-pr.ts8 symbols
questions/00213-hard-vue-basic-props/test-cases.ts7 symbols
scripts/generate-play.ts6 symbols
questions/01290-hard-pinia/test-cases.ts6 symbols
questions/00006-hard-simple-vue/test-cases.ts5 symbols
questions/00003-medium-omit/test-cases.ts5 symbols
scripts/translate.ts4 symbols
questions/02828-hard-classpublickeys/test-cases.ts4 symbols
questions/03312-easy-parameters/test-cases.ts3 symbols

Dependencies from manifests, versioned

@actions/core1.10.1 · 1×
@actions/github6.0.0 · 1×
@actions/io1.1.3 · 1×
@octokit/types12.4.0 · 1×
@type-challenges/octokit-create-pull-request0.1.9 · 1×
@type-challenges/utilsworkspace:* · 1×
@types/fs-extra11.0.4 · 1×
@types/js-yaml4.0.9 · 1×
@types/lz-string1.5.0 · 1×
@types/node20.10.5 · 1×
@types/prompts2.4.9 · 1×

For agents

$ claude mcp add type-challenges \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact