tianditu_typescript_extension
v0.0.26
Published
天地图的类型引用
Downloads
4
Readme
可能 你可以这样 在angular 里面 的 tsconfig.app.json { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/app", "types": [] }, "files": [ "src/main.ts", "src/polyfills.ts" ], "include": [ "src/**/*.d.ts", "node_modules/tianditu_typescript_extension/index.d.ts" ] }
以及在tsconfig.json里面 /* To learn more about this file see: https://angular.io/config/tsconfig. / { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, "target": "es2015", "module": "es2020", "types": [], "lib": [ "es2018", "dom" ] }, "files": [ "src/main.ts", "src/polyfills.ts" ], "include": [ "src/**/.d.ts", "node_modules/tianditu_typescript_extension/index.d.ts" ], "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false } }
直接npm publish