TypeScript self study - Chapter 4: classes

class Let's see the use of classes class Greeter { greeting: string; constructor(message: string) { this.greeting = message; } greet() { return "Hello, " + this.greeting; } } let greeter = new Greeter("world"); There are three parts: a property called greeting, a constructor, and a greet method. inherit class Animal { ...

Added by ronald29x on Thu, 25 Jun 2020 15:20:30 +0300

Great introductory TypeScript tutorial (1.2W words)

Look at this for a little friend who wants to learn TypeScript. This article will take you step by step to learn 14 points related to getting started with TypeScript. See the following picture for a detailed outline: 1. What is TypeScript TypeScript It is a free and open source programming language developed by Microsoft.It is a superset of Ja ...

Added by pennythetuff on Tue, 09 Jun 2020 04:19:48 +0300

Hegel: aspire to be the best JavaScript static type checker

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! As a rookie in JavaScript type checker, Hegel aspires to be the best JavaScript static type checker. It claims to provide a reliable type system with strong type inference. At ...

Added by drakal30 on Fri, 29 May 2020 09:31:34 +0300

Three ways for Webpack to configure React to support Typescript

background At the beginning, my project is based on react. I want to use Typescript in new functions and gradually modify the previous code, so I need to support both (TS|TSX) and (JS|JSX). You may not need to support TS and JS at the same time. This article will give the solution points of both cases ...

Added by pandhandp on Sun, 19 Jan 2020 14:36:23 +0200

Source code interpretation of React useEffect

Preface The interpretation of the source code is helpful to understand what Hooks has done. If you think useEffect is "magic", this article may help you. This blog is limited in length. It only looks at useEffect and tries to be simple and clear. It will take you to the depth of React Hooks Find the source code of Hook (you can jump d ...

Added by jl5501 on Tue, 07 Jan 2020 15:49:05 +0200

TypeScript Advanced Usage Details

Introduction As a powerful static type checking tool, TypeScript is now visible in many large, medium-sized applications and popular JS libraries.As a weakly typed language, JS modifies the type of a variable without taking a moment to write code, resulting in unexpected runtime errors.However, TypeScript helps us solve this problem during comp ...

Added by coolpravin on Tue, 17 Dec 2019 04:03:07 +0200

Simulate implementation of Promise (Beginner Edition)

Implement Promise Simulated (Small White Edition) This article talks about how to simulate the basic function of a Promise. There are already many articles like this on the Internet. There will be more ink in this article because you want to use your own understanding and spoken in vernacular Promise's basic specifications are referenced in thi ...

Added by Bigun on Mon, 16 Dec 2019 06:06:04 +0200

What do I need to do when I first use TypeScript in a Vue project

Preface As we all know, the new version 3.0 of Vue uses TypeScript development, which makes the already popular TypeScript attract more people's attention. Although TypeScript has only been popular in recent years, it was actually born in October 2012, and the official version was released in June 2013. It is a free and open source programming ...

Added by mikkex on Sat, 14 Dec 2019 22:12:28 +0200

AssemblyScript Getting Started Guide

Author: Danny GuoTranslate: Crazy Technology House Original: https://blog.logrocket.com/th... Reproduction is strictly prohibited without permission WebAssembly (Wasm) is a relatively new feature in Web browsers, but it expands the functional potential of using the Web as a service application platform. Learning to use Web Assembly can be a di ...

Added by Avalanche on Wed, 20 Nov 2019 07:19:44 +0200

Server Rendering - Data Prefetching and Status

Web pack from scratch Web Pack 4 is built from scratch (1)Construction of webpack4+React16 Project (II)Detailed partition of Web Pack 4 function configuration (3)Introducing Ant Design and Typescript into webpack4 (IV)Web Pack 4 code de-duplication, information simplification and construction optimization (5)Web Pack 4 configuration Vue version ...

Added by dkphp2 on Wed, 18 Sep 2019 06:01:21 +0300