MorJS 插件示例 类型声明
MorJS 提供了
@morjs/api
基础库,插件项目直接引用这个库即可。可以参考该 tsconfig.json
示例:
{
"compilerOptions": {
"declaration": true,
"target": "ES5",
"importHelpers": true,
"module": "CommonJS",
"moduleResolution": "Node",
"rootDir": "./src",
"outDir": "./lib",
"lib": ["ES6", "ESNext", "DOM"]
},
"include": ["src"]
}