摘要:
Historically, the npm init command was solely use to create a new package.json file. However, as of npm version 6.1, you can now use a new feature of 阅读全文
摘要:
Creating a Chrome extension requires a manifest.json file which defines how your extension will behave. With a minimal setup, you can already manipula 阅读全文
摘要:
If you have a presentation coming up or you just need to present some documentation, then the Code Surfer React component is a powerful way to Highlig 阅读全文
摘要:
As of TypeScript 2.4, it is now possible to define string enums, or more precisely, enums with string members. Just like any other numeric enum, strin 阅读全文
摘要:
Some functions may have different return types depending on the types of the arguments with which they’re invoked. Using TypeScript’s function overloa 阅读全文
摘要:
TypeScript 2.0 introduced a new primitive type called never, the type of values that never occur. It helps model the completion behavior of functions 阅读全文
摘要:
ypeScript 2.2 introduced the object, a type that represents any non-primitive type. It can be used to more accurately type methods such as Object.crea 阅读全文
摘要:
One aspect of control flow based type analysis is that the TypeScript compiler narrows the type of a variable within a type guard. This lesson explore 阅读全文
摘要:
In this lesson we write an imperative function to flatten nested arrays, and then use the popular map, reduce, compose, and pipe functions to transfor 阅读全文