Sfoglia il codice sorgente

support new config

chenshuai2144 4 anni fa
parent
commit
d19675859a
2 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 5 0
      src/typings.d.ts
  2. 1 0
      tsconfig.json

+ 5 - 0
src/typings.d.ts

@@ -11,6 +11,11 @@ declare module '*.gif';
 declare module '*.bmp';
 declare module '*.bmp';
 declare module '*.tiff';
 declare module '*.tiff';
 declare module 'omit.js';
 declare module 'omit.js';
+declare module 'numeral';
+declare module '@antv/data-set';
+declare module 'mockjs';
+declare module 'react-fittext';
+declare module 'bizcharts-plugin-slider';
 
 
 // google analytics interface
 // google analytics interface
 type GAFieldsObject = {
 type GAFieldsObject = {

+ 1 - 0
tsconfig.json

@@ -7,6 +7,7 @@
     "sourceMap": true,
     "sourceMap": true,
     "baseUrl": ".",
     "baseUrl": ".",
     "jsx": "react-jsx",
     "jsx": "react-jsx",
+    "resolveJsonModule": true,
     "allowSyntheticDefaultImports": true,
     "allowSyntheticDefaultImports": true,
     "moduleResolution": "node",
     "moduleResolution": "node",
     "forceConsistentCasingInFileNames": true,
     "forceConsistentCasingInFileNames": true,