随笔分类 -  TypeScript

上一页 1 ··· 26 27 28 29 30
摘要:This lesson shows you how to install TypeScript and run the TypeScript compiler against a .ts file from the command line. install: app.ts: RUN: You wi 阅读全文
posted @ 2016-06-09 01:47 Zhentiw 阅读(258) 评论(0) 推荐(0) 编辑
摘要:Libraries such as RxJS use generics heavily in their definition files to describe how types flow through different interfaces and function calls. We c 阅读全文
posted @ 2016-06-01 18:14 Zhentiw 阅读(565) 评论(0) 推荐(0) 编辑
摘要:If Typescript is the first language in which you've encountered generics, the concept can be quite difficult to understand. We skip the lecture in thi 阅读全文
posted @ 2016-04-29 03:47 Zhentiw 阅读(184) 评论(0) 推荐(0) 编辑
摘要:Define a function type and params type: 阅读全文
posted @ 2016-04-01 20:38 Zhentiw 阅读(228) 评论(0) 推荐(0) 编辑
摘要:Handling state with Typescript enums, instead of booleans, is preferred because:- Enums are more readable- Enums can have as many states as you need w 阅读全文
posted @ 2016-03-25 00:31 Zhentiw 编辑
摘要:To avoid using "any" type is a best pratice. The reason for that is it disable the power of typescirpt to helping check you during the compile time. F 阅读全文
posted @ 2016-03-20 05:06 Zhentiw 阅读(187) 评论(0) 推荐(0) 编辑
摘要:Inheritance is a way toindicate that a class receives behavior from a parent class. Then we can override, modify or augmentthose behaviors on the new ... 阅读全文
posted @ 2015-11-02 02:43 Zhentiw 编辑
摘要:In this unit, we'll look at some of the new features in the latest version of TypeScript 1.4 and talk about why they're important. We'll be covering s... 阅读全文
posted @ 2015-08-17 20:40 Zhentiw 编辑
摘要:Package.json:{ "name": "typescript", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": { "gulp": "^3.9.0", "gulp-t... 阅读全文
posted @ 2015-08-17 20:13 Zhentiw 编辑
摘要:The TypeScript type system enables programmers to express limits on the capabilities of JavaScript objects, and to use tools that enforce these limits... 阅读全文
posted @ 2015-08-17 19:30 Zhentiw 编辑
摘要:The TypeScript compiler is a powerful tool which catches mistakes even in vanilla JavaScript. Try it online at theTypeScript Playground, zero setup re... 阅读全文
posted @ 2015-03-19 16:44 Zhentiw 编辑
摘要:Create a greeter.ts file:class Student { fullname : string; constructor(public firstname, public middleinitial, public lastname) { this.f... 阅读全文
posted @ 2015-03-19 16:37 Zhentiw 编辑

上一页 1 ··· 26 27 28 29 30
点击右上角即可分享
微信分享提示