Giter VIP home page Giter VIP logo

typescript-notes's Introduction

TypeScript-Notes

typescript学习笔记

TypeScript是javascript的类型的超集合,它可以编译成纯JavaScript。编译出来的JavaScript可以运行在任何浏览器上。TypeScript编译工具可以运行在任何服务器和任何系统上。TypeScript是开源的。

TypeScript的优势

1.增加了代码的可读性和可维护性;

  • 类型系统实际上是最好的文档,大部分的函数看看类型的定义就知道如何使用了
  • 可以在编译阶段就发现大部分错误,这总比在运行时候出错好;
  • 增强了编辑器和IDE的功能,包括代码补全、接口提示、跳转的定义、代码重构等;
TypeScript的缺点
  • 有一定的学习成本,需要理解接口、泛型、类、枚举类型等概念;
  • 短期可能增加一些开发成本,毕竟要多写一些类型的定义,不过对于一个长期维护的项目,TypeScript能够减少维护成本;
  • 集成到构建流程需要一些工作量;
  • 可能和一些库结合的不是很完美;

typescript-notes's People

Contributors

huich avatar

Watchers

 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.