TypeScript fragrance series - Enumeration

Preface The contents of TypeScript fragrance series will refer to Chinese document , but the examples in this paper will not be the same as those in the document, and some places will be studied in depth. In addition, the results of some examples are compiled into JavaScript after the code has no erro ...

Posted on Wed, 05 Feb 2020 21:01:13 -0800 by mikewooten

The simplest configuration of react routing

Preface vue has written a lot. I want to know more about react. In addition, we all say that typescript is very fragrant. So write a small demo project with react + typescript. Because the main purpose of the project is to practice the cooperative use of various technologies, so the implementation of ...

Posted on Fri, 17 Jan 2020 04:13:38 -0800 by GESmithPhoto

The first way to learn TypeScript: installation, basic type, variable declaration, operator and conditional statement

1: Install TypeScript There are two main ways to get TypeScript tools: Through npm (Node.js package manager) Install TypeScript plug-in for Visual Studio For users using npm: > npm install -g typescript For Visual Studio users 1, Download Visual Studio Code. 2: click the code file edite ...

Posted on Mon, 13 Jan 2020 02:46:11 -0800 by musicdirector

Vue Cli3 create project

Vue Cli3 create project Vue,Markdown 1. installation npm install -g @vue/cli 2. Create a project vue create iview-admin # OR vue ui default (babel, eslint) default package, which provides babel and eslint support. Manually select features to select the required functions and provide more feature selection. For example, if you want to support ...

Posted on Sun, 15 Dec 2019 11:08:20 -0800 by superhaggis

TypeScript Writing Vue Project Structure Resolution

Writing a Vue project using TypeScript has been a while ago, and I was confused when I just used TypeScript. I don't know where to start. Writing projects using TypeScript is cumbersome and not as flexible as JavaScript, because TypeScript has too many restrictions on code and throws an unexpected error from time to time during the process.This ...

Posted on Fri, 13 Dec 2019 20:07:46 -0800 by Ellen67

JS/TS language zip compression decompression tripartite library and its use

In the Laya project, the configuration files written to AS3 by typescript are used to compress the files exported by the packaging tool.What to do? Go to github and find a library. The address is as followshttps://github.com/imaya/zlib.js Download the zlib.js or zlib.min.js file foundWrite zlib.min.d.ts file by yourself. The code is as follows ...

Posted on Wed, 27 Nov 2019 08:35:03 -0800 by sstangle73

Nuxt project supports eslint + printer + typescript

Basic project of scaffold installation NPX create nuxt app < project name >, for example: NPX create nuxt app nuxt ts, install what you want according to the prompts. This project is pre installed: koa+PWA+linter+prettier+axios in Universal mode. The default project directory is as follows: eslint + prettier + vscode save AutoFormat &am ...

Posted on Fri, 08 Nov 2019 11:29:23 -0800 by Backara_Drift

vue-cli3 adapts to mobile rem

Using Vue cli npm install -g @vue/cli // Use vue-cli3 version Custom feature configuration TypeScript TypeScript Progressive Web App (PWA) Support Router Vuex CSS Pre-processors Linter / Formatter Unit Testing E2E Testing Create project vue create demo Select Manually select features / / to customize f ...

Posted on Fri, 08 Nov 2019 11:08:05 -0800 by dymon

Learning notes of Angular TypeScript framework

Version 8 TypeScript version 3.4.5 Interface object Must be declared under component configuration declaration first, import statement Parameter data type must be specified // Define interface data types // Equivalent to defining a global obj object // And define the data type of each key value // Convenient internal parameter inheritance inter ...

Posted on Fri, 01 Nov 2019 01:16:05 -0700 by ayok

typescript knowledge point document note 2

Type operator keyof T, index type query operator. For any type of T, the result of keyof T is the union of known public property names on t T[K], index access operator. Just make sure the type variable K extends keyof T function pluck<T, K extends keyof T>(o: T, names: K[]): T[K][] { return names.map(n => o[n]); } inter ...

Posted on Wed, 30 Oct 2019 12:14:36 -0700 by suzuki