Qualified Front End Twelfth Bomb-TypeScript+Large Project

Write before TypeScript has been around for a long time and is used by many large companies to develop large projects.Last month, I was also following up on a large operations and maintenance project for the group. The tasks to be done in a project are roughly divided into the following modules One-stop management platform Scale operation and ...

Posted by Ifa on Sat, 11 May 2019 15:58:57 -0700

Use TypeScript to write a library that perfects testing, documentation, and continuous integration

This article mainly describes how to use TypeScript to write a perfect library, including testing, documentation, continuous integration, covering the technology and tools needed to write the entire library, mainly covering: Project catalog skeleton TypeScript configuration Using jest unit testing Writing documents using vuepress Deploy docume ...

Posted by hessian on Sat, 11 May 2019 06:09:42 -0700

Summarization and optimization of async/await error handling methods

Xiaobian recommends: Fundebug Provide JS error monitoring, Wechat applet error monitoring, Wechat game error monitoring, Node.j error monitoring and Java error monitoring. It's really a very useful error monitoring fee service, which is used by many big companies. Preface The world of node.js, starting with callback, does n ...

Posted by cmccomas on Fri, 10 May 2019 23:34:38 -0700

React Render Props in TypeScript

Original Link: https://medium.com/@jrwebdev/... As with previous articles, this article also requires you to have some background in render props, if not Official Documents It may be of great help to you.This article will use functions as render props mode for children and context API combined with React as examples.If you want to use render p ...

Posted by echo10 on Wed, 08 May 2019 23:54:38 -0700

Advanced Guidelines for Reaction

Reference website https://react.docschina.org/docs/jsx-in-depth.html Deep into JSX Essentially, JSX is just a grammatical sugar for React. createElement (component, props,... Children) methods. <MyButton color="blue" shadowSize={2}> Click Me </MyButton> Compile to: React.createElement( MyButton, // Compon ...

Posted by jp2php on Tue, 30 Apr 2019 09:50:38 -0700

Shallow in and shallow out Typescript Decorators

Temporary interest, want to write an article about ts decorator, spent half a day sorting out.. This stuff, in ES2017, seems to have... Documentation. Here. Because temporarily, I don't want to write too many text introductions. Just open the code with a little text description. This article explains what the decorator is through the decorator ...

Posted by mad_hacker on Tue, 23 Apr 2019 14:00:33 -0700

Revealing A ngular 2 (1): Introduction to TypeScript

3.1 Overview of TypeScript 3.1.1 overview 3.1.2 installation Check whether npm is installed Next, we use the 2.0 official version of TypeScript. The installation commands are as follows: npm install -g typescript@2.0.0 Write the first Typescript program and save it to hello.ts. The code in the file is as follows: console.log('hel ...

Posted by newcastle_unite on Wed, 03 Apr 2019 09:18:32 -0700

Writing by buzz for Angular 2 single page application

Characteristics of Single Page Application advantage Inferiority Programming development environment New project Main concepts Component componentts componenthtml Association and Binding Data and Behavior of Compoonentts and Compoonenthtml Route Routing declaration Routing instance service Examples encapsulate routing jumps as ...

Posted by Nadzree on Sun, 31 Mar 2019 15:18:30 -0700

Introduction to TypeScript

Introduction to TypeScript Before using TypeScript, we need: Installing TypeScript uses nmp-v to check whether npm is installed Use tsc-v to check whether the TypeScript environment is installed or not, use NPM install-g type script installation environment, use tsc test.ts to mutate the TypeScript.ts file into JavaScript.js ...

Posted by rcity on Tue, 29 Jan 2019 04:39:14 -0800

NestJs Concise Tutorial

After looking at koa,express and their derivative frameworks, it seems that NodeJs'Web development framework can not jump out of a fixed pattern. This question also bothers PHP. Is it possible to simplify development through annotations?In fact, PHP has "annotations", but it is implemented by reading annotations through reflection, wh ...

Posted by asy1mpo on Sun, 27 Jan 2019 09:51:14 -0800