Skip to main content

TypeScript 类型

· 2 min read
fengjutian

TypeScript 类型挑战

高质量的类型可以提高项目的可维护性并避免一些潜在的漏洞。本项目意在于让你更好的了解 TS 的类型系统,编写你自己的类型工具,或者只是单纯的享受挑战的乐趣!

地址:https://github.com/type-challenges/type-challenges

DefinitelyTyped

DefinitelyTyped 包含大量的高质量的 TypeScript 类型定义。通过使用 DefinitelyTyped 及其包含的声明文件,我们可以使用大多数流行的JavaScript库,就像它们是 TypeScript 库一样,将通过编译器进行类型验证。

地址:https://github.com/DefinitelyTyped/DefinitelyTyped

React Redux TypeScript Guide

本指南记录了有关在 React(及其生态系统)中以函数式风格使用 TypeScript 的模式和秘诀。它将使代码类型安全,同时专注于从实现中推断类型,从长远来看更容易编写和维护正确的类型。

地址:https://github.com/piotrwitek/react-redux-typescript-guide

React TypeScript Cheatsheets

专注于帮助 React 开发人员在 React 应用中使用 TypeScript。

地址:https://github.com/typescript-cheatsheets/react

Clean Code TypeScript

将 Clean Code 的概念适用到 TypeScript,引导读者使用 TypeScript 编写易读、可扩展的应用。

地址:https://github.com/labs42io/clean-code-typescript

TypeScript 风格指南

Google 的 TypeScript 风格指南。

地址:https://google.github.io/styleguide/tsguide.html

Awesome TypeScript

很棒的 TypeScript 资源

地址:https://github.com/semlinker/awesome-typescript