Understanding of decorators in TypeScript
definition
Decorators are special types of declarations that can be attached to class declarations, methods, accessors, properties, or parameters
It is a function of dynamically extending objects without changing the original class and using inheritance
Similarly, in essence, it is not a tall structure, but an ordinary function. The form of ...
Posted by Sphynx on Sat, 20 Nov 2021 23:53:47 -0800
TypeScript official manual translation plan [3]: type contraction
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Posted by Misery_Kitty on Sat, 20 Nov 2021 02:01:56 -0800
[TypeScript] play TypeScript from scratch - data types in TypeScript
preface
Hello, guys. In the last article, we had a preliminary understanding of typescript: Mastering what typescript is, how to use typescript and when to use typescript. Today we will learn about data types in typescript.
As mentioned in the previous article, TypeScript is a superset of JavaScript. Since it is a superset, some data type ...
Posted by PRodgers4284 on Sun, 07 Nov 2021 18:47:34 -0800
typescript basic learning
1: typescript introduction and environment construction
1. Introduction to typescript
TS is a superset of JavaScript and can be compiled into pure JavaScript. TS adds many features, such as data types, classes, inheritance and interfaces.
2. Build typescript environment
i. Project environment construction
Install node. JS = > Global typescr ...
Posted by SimpleManWeb on Sat, 06 Nov 2021 13:03:08 -0700
Interface in 03ts
1, Object type
object represents a non primitive type, that is, a type other than number, string, boolean, symbol, null or undefined. object types can take several forms:
object typeArray typeClass typeFunction type
These forms are called object types in TypeScript.
1. Object type:
For example, we write an object that represents the basic ...
Posted by maliskoleather on Sat, 06 Nov 2021 09:18:59 -0700
Hooks + TS build a task management system -- implementation of drag and drop function
๐ข Hello, I'm Xiaocheng, a sophomore front-end enthusiast
๐ข This series of articles is a learning summary of the practical jira task management system
๐ข Thank you very much for reading. You are welcome to correct the wrong places ๐
๐ข May you be loyal to yourself and love life
In the last article, we wrote the task group pa ...
Posted by lamajlooc on Tue, 02 Nov 2021 17:08:40 -0700
The difference between TypeScript and JavaScript (for an introduction to TypeScript 10000 words, it's enough to understand TS)
TypeScript is a superset of JavaScript and supports ECMAScript 6 standard( ES6 tutorial ). TypeScript is a free and open source programming language developed by Microsoft. TypeScript is designed to develop large-scale applications. It can be compiled into pure JavaScript, and the compiled JavaScript can run on any browser.
TypeScript is a la ...
Posted by firemankurt on Tue, 02 Nov 2021 08:30:25 -0700
Vue3 + Typescript implements a web version of greedy snake by yourself
preface
I still remember when I was just in college, in the first programming class, the teacher said, "don't let me catch you playing games, otherwise you will write what you play.". I didn't know anything and didn't dare to play.
If I can go back to that class now, I can play with my greedy snake unscrupulously. If she catches me, ...
Posted by andco on Thu, 28 Oct 2021 08:21:47 -0700
TypeScript data type, arbitrary value, type inference, union type, interface (Interfaces, optional attribute?:, arbitrary attribute, read-only attribute)
TypeScript (II) data type, arbitrary value, type inference, joint type, interface (Interfaces, optional attribute?:, arbitrary attribute, read-only attribute)
website: https://ts.xcatliu.com/
1. Original data type
There are two types of JavaScript: raw data type( Primitive data types )And Object types.
Raw data types include Boolea ...
Posted by contra10 on Sun, 24 Oct 2021 00:27:58 -0700
What is TypeScript generic programming
Front end programmers may not know generics very well. They may know generics if they know Java, a strongly typed language. They can use generics to write dynamically reusable TS code. In TS, generics are generally used for classes, interfaces and functions.
Today, let's learn how to use generics in TypeScript and the scenarios where generics ...
Posted by iamyespee on Sat, 16 Oct 2021 11:11:37 -0700