Coder Social home page Coder Social logo

marufsiddiqui / type-challenges Goto Github PK

View Code? Open in Web Editor NEW

This project forked from type-challenges/type-challenges

1.0 0.0 0.0 292 KB

Collection of TypeScript type challenges with online judge

Home Page: https://tsch.js.org/

TypeScript 91.75% Shell 0.18% HTML 5.29% CSS 2.78%

type-challenges's Introduction

Collection of TypeScript type challenges



English | 简体中文

Intro

by the power of TypeScript's well-known Turing Completed type system

High quality types can help improving projects' maintainability while avoiding potential bugs.

There are a bunch of awesome type utilities libraries may boosting your works on types, like ts-toolbelt, utility-types, SimplyTyped, etc, which you can already use.

This project is aim to help you better understand how the type system works, writing your own utilities, or just having fun with the challenges. We are also trying to form a community that you can ask questions and get answers you have faced in realworld - they may become part the challenges!

Challenges

Click the following badges to see detail of the challenges.

1
13・Hello World

6
4・Pick<T, K> 7・Readonly<T> 11・Tuple to Object 14・First of Array 18・Length of Tuple 43・Exclude

10
2・Get Return Type 3・Omit<T, K> 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

7
6・Simple Vue 17・Currying 1 55・Union to Intersection 57・Get Required 59・Get Optional 89・Required Keys 90・Optional Keys

1
5・Get Readonly Keys

By Tags
#4.014・First of Array 15・Last of Array 16・Pop 17・Currying 1
#application12・Chainable Options 6・Simple Vue
#array14・First of Array 15・Last of Array 16・Pop 20・Promise.all 17・Currying 1
#built-in4・Pick<T, K> 7・Readonly<T> 43・Exclude 2・Get Return Type 3・Omit<T, K> 20・Promise.all
#deep9・Deep Readonly
#infer2・Get Return Type 10・Tuple to Union 55・Union to Intersection 57・Get Required 59・Get Optional
#map62・Type Lookup
#object-keys7・Readonly<T> 8・Readonly 2 9・Deep Readonly 5・Get Readonly Keys
#readonly7・Readonly<T> 8・Readonly 2 9・Deep Readonly
#this6・Simple Vue
#tuple18・Length of Tuple 10・Tuple to Union
#union4・Pick<T, K> 3・Omit<T, K> 10・Tuple to Union 62・Type Lookup
#utils55・Union to Intersection 57・Get Required 59・Get Optional 89・Required Keys 90・Optional Keys 5・Get Readonly Keys

Recommended Readings

Official

Articles

TODO

How to Contribute

There are several ways you can contribute to this project

  • Share your answers / solutions
  • Propose new challenges
  • Add more test cases to the existing challenges
  • Provide learning resources or ideas of how to solve challenges
  • Share the problems you have faced in realworld projects, regardless you having the solution or not - the community would help you as well.
  • Help with others by discussion in issues
  • Contribute the infra of this project TODOs.md

Just open an issue and choose the cosponsing template. Thanks!

Thanks

This project was born from solving realworld types problem with @hardfist and @MeCKodo. And great thanks to @sinoon who contributed a lot while giving early feedback on this project.

Inspired by

Contributors

TODO

License

MIT

type-challenges's People

Contributors

antfu avatar dqn avatar g-plane avatar github-actions[bot] avatar iwanabethatguy avatar jinxin0112 avatar julioc avatar louy2 avatar orta avatar sinoon avatar xiaoxiangmoe avatar zheeeng avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.