前言 在学习typescript的过程当中,有一个github库对其类型的学习特别有帮助,是一个有点类似于leetcode的刷题项目,能够在里面刷各种关于typescript类型的题目,本片文章带大家做其中简单难度的第七道题 268-easy-if type-challenges/type-challenges: Collection of TypeScript type challenges with online judge (github.com)