Giter Club home page Giter Club logo

type-challenges-solutions's Introduction

TS Logo

TS 类型体操 🤸‍♂️

Type Challenges 中文解答及分析

Type Challenges是一个收录了 许多 TS 类型编程相关题目及解答的库, 本项目旨在对其中的问题做出全面且详细的解答和分析(使用中文!), 同时也是通过费曼学习法来提升自己的能力

前置知识 🚩

第 0️⃣ 点, 你需要掌握 js 的基本语法和常用函数

第 1️⃣, 开始挑战前你需要了解 TS 的基本概念, 在此推荐 菜鸟教程的 TS 基本语法教程. 还需要 TS 编译编辑环境, 推荐使用 VSCode+npm 下载 TS, 亦可在线运行 TS 代码

其次, 最好先了解一下 TS 的高阶特性, 如泛型, keyof, typeof, extend等. 在此推荐TS 官网上的英文文档

接着, 你可以前去Type Challenges 官方地址处逛逛, 看看其中的题目及规范等

最后, 参考下方目录结构, cd ./src, 开始旅程吧

目录结构 🌳

/src目录下对每个题目建立了一个文件夹, 命名为${编号}-${题目名称}-${难度}, 其中各个文件夹下有两个文件

  • README.md中依次包含
    • 翻译过的题干
    • 我的解答
    • 详细分析
  • index.ts中是最小可通过编译的代码, 其中包括
    • 可能存在的前置类型定义
    • 翻译过的题干
    • 题解
    • 测试

题目速览 🗺

type-challenges-solutions's People

Contributors

xiong35 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tryndamere-wang

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.