Vue3+TS quick start
1, TypeScript quick start
New TypeScript
TypeScript is a superset of JavaScript. It mainly provides type system and support for ES6 +. It is developed by Microsoft and the code is open source GitHub upper
Install TypeScript
Run the following command from the command line to install TypeScript globally:
npm install -g typescript
After ...
Added by furotte on Fri, 12 Nov 2021 22:08:30 +0200
Do you know the strange symbols of JS and TS?
startWith the advent of ES6 + and Typescript, the world of Javascript has been an era of symbols flying all over the sky. I feel that I can't keep up with it without studying hard. Reading the code written by others is like reading a book from heaven.I saw a function in a recent project, Em... Call directly, good guy!!!In order to move bricks m ...
Added by Daveyz83 on Mon, 01 Nov 2021 10:50:54 +0200
Quick learning TypeScript - concise and key manual - Volume II
👉 About the author
As we all know, life is a long process, constantly overcoming difficulties and constantly reflecting on the process of progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share all my thoughts, experiences and stories in order to find resonance!!! Focus on Android/Unity an ...
Added by scooter41 on Sat, 16 Oct 2021 22:13:19 +0300
TypeScript Quick Start Tutorial, Union Type & Cross Type & Type Protection for Mobile Client Developers
Joint and cross types are actually a very common case in life.
Cucumber, do you think he is a fruit or vegetable?Does tomato belong to fruit or vegetable?So what about fruit cucumbers?
In fact, if we just look at cucumbers and tomatoes, it can be considered as either fruit or vegetable. In fact, it is decided by the scene that I want to c ...
Added by coldfiretech on Fri, 03 Sep 2021 04:15:40 +0300
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