tsconfig.json 配置
下面对 tsconfig.json
配置文件中常用配置做相关说明
若想使用下面语法导入 React
1 | import React, { Component } from 'react'; |
而不是使用
1 | import * as React from 'react'; |
需要在 tsconfig.json
配置文件中添加:
1 | { |
tslint.json 配置
允许成员函数不加 public
说明:
1 | { |
下面对 tsconfig.json
配置文件中常用配置做相关说明
若想使用下面语法导入 React
1 | import React, { Component } from 'react'; |
而不是使用
1 | import * as React from 'react'; |
需要在 tsconfig.json
配置文件中添加:
1 | { |
允许成员函数不加 public
说明:
1 | { |