@teambit/insights 1.0.107 → 1.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/preview/teambit_explorer_insights-preview.js +1 -0
- package/dist/all-insights/duplicate-dependencies.d.ts +2 -2
- package/dist/all-insights/find-circulars.js +2 -2
- package/dist/all-insights/find-circulars.js.map +1 -1
- package/dist/insight-manager.d.ts +1 -1
- package/dist/insight.d.ts +3 -3
- package/dist/insights.compositon.d.ts +2 -2
- package/dist/insights.main.runtime.d.ts +1 -1
- package/dist/{preview-1703590665075.js → preview-1703698405864.js} +1 -1
- package/package.json +16 -23
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.explorer/insights-preview"]=t():e["teambit.explorer/insights-preview"]=t()}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{compositions:()=>d,compositions_metadata:()=>u,overview:()=>l});var o={};e.r(o),e.d(o,{default:()=>s}),React;const r=MdxJsReact,n=TeambitMdxUiMdxScopeContext;var i=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var a={},c="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,i);return(0,r.mdx)(c,p({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(n.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"Reveals circular and outdated dependencies.")))}s.isMDXComponent=!0;const d=[],l=[o],u={compositions:[]};return t})()));
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { GraphMain } from '@teambit/graph';
|
2
2
|
import { Insight, InsightResult } from '../insight';
|
3
3
|
export declare const INSIGHT_NAME = "duplicate dependencies";
|
4
|
-
|
4
|
+
type Dependent = {
|
5
5
|
id: string;
|
6
6
|
usedVersion: string;
|
7
7
|
};
|
8
|
-
|
8
|
+
type VersionWithDependents = {
|
9
9
|
version: string;
|
10
10
|
compId: string;
|
11
11
|
dependents: Dependent[];
|
@@ -30,14 +30,14 @@ class FindCycles {
|
|
30
30
|
this.graphBuilder = graphBuilder;
|
31
31
|
}
|
32
32
|
async runInsight(opts) {
|
33
|
-
const graph = await this.graphBuilder.getGraphIds(opts
|
33
|
+
const graph = await this.graphBuilder.getGraphIds(opts?.ids);
|
34
34
|
if (!graph) {
|
35
35
|
return {
|
36
36
|
message: '',
|
37
37
|
data: undefined
|
38
38
|
};
|
39
39
|
}
|
40
|
-
const cycles = graph.findCycles(undefined, opts
|
40
|
+
const cycles = graph.findCycles(undefined, opts?.includeDeps);
|
41
41
|
if (cycles.length === 1) {
|
42
42
|
return {
|
43
43
|
message: `Found ${cycles.length} cycle.`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_componentIssues","data","require","_lodash","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","INSIGHT_CIRCULAR_DEPS_NAME","exports","FindCycles","constructor","graphBuilder","runInsight","opts","graph","getGraphIds","ids","message","undefined","cycles","findCycles","includeDeps","length","renderData","string","map","cycle","join","run","bareResult","renderedData","result","metaData","name","description","addAsComponentIssue","components","c","id","allIds","uniq","flat","componentsWithCircular","filter","component","includes","toString","forEach","state","issues","getOrCreate","IssuesClasses","CircularDependencies","default"],"sources":["find-circulars.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { GraphMain } from '@teambit/graph';\nimport { uniq } from 'lodash';\nimport { Insight, InsightResult, RawResult } from '../insight';\nimport { RunInsightOptions } from '../insight-manager';\n\nexport const INSIGHT_CIRCULAR_DEPS_NAME = 'circular';\n\nexport default class FindCycles implements Insight {\n name = INSIGHT_CIRCULAR_DEPS_NAME;\n description = 'Get all circular dependencies in component graph';\n graphBuilder: GraphMain;\n constructor(graphBuilder: GraphMain) {\n this.graphBuilder = graphBuilder;\n }\n private async runInsight(opts?: RunInsightOptions): Promise<RawResult> {\n const graph = await this.graphBuilder.getGraphIds(opts?.ids);\n if (!graph) {\n return {\n message: '',\n data: undefined,\n };\n }\n const cycles = graph.findCycles(undefined, opts?.includeDeps);\n if (cycles.length === 1) {\n return {\n message: `Found ${cycles.length} cycle.`,\n data: cycles,\n };\n }\n return {\n message: `Found ${cycles.length} cycles.`,\n data: cycles,\n };\n }\n\n private renderData(data: RawResult) {\n if (data.data.length === 0) {\n return 'No cyclic dependencies';\n }\n const string = data.data\n .map((cycle) => {\n return `\\nCyclic dependency\n-----------------\n- ${cycle.join('\\n- ')}`;\n })\n .join('\\n');\n return string;\n }\n\n async run(opts?: RunInsightOptions): Promise<InsightResult> {\n const bareResult = await this.runInsight(opts);\n const renderedData = this.renderData(bareResult);\n const result: InsightResult = {\n metaData: {\n name: this.name,\n description: this.description,\n },\n data: bareResult.data,\n message: bareResult.message,\n renderedData,\n };\n\n if (bareResult.message) {\n result.message = bareResult.message;\n }\n return result;\n }\n\n async addAsComponentIssue(components: Component[]) {\n const result = await this.runInsight({ ids: components.map((c) => c.id) });\n if (!result.data.length) {\n return; // no circulars\n }\n const allIds = uniq(result.data.flat());\n const componentsWithCircular = components.filter((component) => allIds.includes(component.id.toString()));\n componentsWithCircular.forEach((component) => {\n component.state.issues.getOrCreate(IssuesClasses.CircularDependencies).data = true;\n });\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,iBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,gBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAIvB,MAAMW,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,UAAU;AAErC,MAAME,UAAU,CAAoB;EAIjDC,WAAWA,CAACC,YAAuB,EAAE;IAAAzB,eAAA,eAH9BqB,0BAA0B;IAAArB,eAAA,sBACnB,kDAAkD;IAAAA,eAAA;IAG9D,IAAI,CAACyB,YAAY,GAAGA,YAAY;EAClC;EACA,MAAcC,UAAUA,CAACC,IAAwB,EAAsB;IACrE,MAAMC,KAAK,GAAG,MAAM,IAAI,CAACH,YAAY,CAACI,WAAW,CAACF,IAAI,
|
1
|
+
{"version":3,"names":["_componentIssues","data","require","_lodash","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","INSIGHT_CIRCULAR_DEPS_NAME","exports","FindCycles","constructor","graphBuilder","runInsight","opts","graph","getGraphIds","ids","message","undefined","cycles","findCycles","includeDeps","length","renderData","string","map","cycle","join","run","bareResult","renderedData","result","metaData","name","description","addAsComponentIssue","components","c","id","allIds","uniq","flat","componentsWithCircular","filter","component","includes","toString","forEach","state","issues","getOrCreate","IssuesClasses","CircularDependencies","default"],"sources":["find-circulars.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { GraphMain } from '@teambit/graph';\nimport { uniq } from 'lodash';\nimport { Insight, InsightResult, RawResult } from '../insight';\nimport { RunInsightOptions } from '../insight-manager';\n\nexport const INSIGHT_CIRCULAR_DEPS_NAME = 'circular';\n\nexport default class FindCycles implements Insight {\n name = INSIGHT_CIRCULAR_DEPS_NAME;\n description = 'Get all circular dependencies in component graph';\n graphBuilder: GraphMain;\n constructor(graphBuilder: GraphMain) {\n this.graphBuilder = graphBuilder;\n }\n private async runInsight(opts?: RunInsightOptions): Promise<RawResult> {\n const graph = await this.graphBuilder.getGraphIds(opts?.ids);\n if (!graph) {\n return {\n message: '',\n data: undefined,\n };\n }\n const cycles = graph.findCycles(undefined, opts?.includeDeps);\n if (cycles.length === 1) {\n return {\n message: `Found ${cycles.length} cycle.`,\n data: cycles,\n };\n }\n return {\n message: `Found ${cycles.length} cycles.`,\n data: cycles,\n };\n }\n\n private renderData(data: RawResult) {\n if (data.data.length === 0) {\n return 'No cyclic dependencies';\n }\n const string = data.data\n .map((cycle) => {\n return `\\nCyclic dependency\n-----------------\n- ${cycle.join('\\n- ')}`;\n })\n .join('\\n');\n return string;\n }\n\n async run(opts?: RunInsightOptions): Promise<InsightResult> {\n const bareResult = await this.runInsight(opts);\n const renderedData = this.renderData(bareResult);\n const result: InsightResult = {\n metaData: {\n name: this.name,\n description: this.description,\n },\n data: bareResult.data,\n message: bareResult.message,\n renderedData,\n };\n\n if (bareResult.message) {\n result.message = bareResult.message;\n }\n return result;\n }\n\n async addAsComponentIssue(components: Component[]) {\n const result = await this.runInsight({ ids: components.map((c) => c.id) });\n if (!result.data.length) {\n return; // no circulars\n }\n const allIds = uniq(result.data.flat());\n const componentsWithCircular = components.filter((component) => allIds.includes(component.id.toString()));\n componentsWithCircular.forEach((component) => {\n component.state.issues.getOrCreate(IssuesClasses.CircularDependencies).data = true;\n });\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,iBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,gBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,G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ChD,IAAI,CAACuC,MAAM,EAAE;MACvB,OAAO,CAAC;IACV;IACA,MAAMiB,MAAM,GAAG,IAAAC,cAAI,EAACT,MAAM,CAAChD,IAAI,CAAC0D,IAAI,CAAC,CAAC,CAAC;IACvC,MAAMC,sBAAsB,GAAGN,UAAU,CAACO,MAAM,CAAEC,SAAS,IAAKL,MAAM,CAACM,QAAQ,CAACD,SAAS,CAACN,EAAE,CAACQ,QAAQ,CAAC,CAAC,CAAC,CAAC;IACzGJ,sBAAsB,CAACK,OAAO,CAAEH,SAAS,IAAK;MAC5CA,SAAS,CAACI,KAAK,CAACC,MAAM,CAACC,WAAW,CAACC,gCAAa,CAACC,oBAAoB,CAAC,CAACrE,IAAI,GAAG,IAAI;IACpF,CAAC,CAAC;EACJ;AACF;AAACyB,OAAA,CAAA6C,OAAA,GAAA5C,UAAA"}
|
package/dist/insight.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { Component } from '@teambit/component';
|
2
2
|
import { RunInsightOptions } from './insight-manager';
|
3
|
-
export
|
3
|
+
export type InsightMetaData = {
|
4
4
|
name: string;
|
5
5
|
description: string;
|
6
6
|
};
|
7
|
-
export
|
7
|
+
export type InsightResult = {
|
8
8
|
metaData: InsightMetaData;
|
9
9
|
message: string;
|
10
10
|
data: any;
|
11
11
|
renderedData?: string;
|
12
12
|
};
|
13
|
-
export
|
13
|
+
export type RawResult = {
|
14
14
|
message: string;
|
15
15
|
data: any;
|
16
16
|
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
export declare const Logo: () =>
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Logo: () => JSX.Element;
|
@@ -10,7 +10,7 @@ export declare class InsightsMain {
|
|
10
10
|
runInsights(names: string[], opts: RunInsightOptions): Promise<InsightResult[]>;
|
11
11
|
listInsights(): string[];
|
12
12
|
addInsightsAsComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>;
|
13
|
-
static slots:
|
13
|
+
static slots: any[];
|
14
14
|
static dependencies: import("@teambit/harmony").Aspect[];
|
15
15
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
16
16
|
static config: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
;
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_insights@1.0.
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_insights@1.0.109/dist/insights.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,43 +1,39 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/insights",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.109",
|
4
4
|
"homepage": "https://bit.cloud/teambit/explorer/insights",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.explorer",
|
8
8
|
"name": "insights",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.109"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
13
13
|
"chalk": "2.4.2",
|
14
14
|
"semver": "7.5.2",
|
15
15
|
"lodash": "4.17.21",
|
16
|
-
"core-js": "^3.0.0",
|
17
|
-
"@babel/runtime": "7.20.0",
|
18
16
|
"@teambit/component-id": "1.2.0",
|
19
17
|
"@teambit/harmony": "0.4.6",
|
20
18
|
"@teambit/bit-error": "0.0.404",
|
21
|
-
"@teambit/graph": "1.0.
|
22
|
-
"@teambit/component": "1.0.
|
23
|
-
"@teambit/cli": "0.0.
|
24
|
-
"@teambit/component-issues": "0.0.
|
25
|
-
"@teambit/issues": "1.0.
|
19
|
+
"@teambit/graph": "1.0.109",
|
20
|
+
"@teambit/component": "1.0.109",
|
21
|
+
"@teambit/cli": "0.0.841",
|
22
|
+
"@teambit/component-issues": "0.0.138",
|
23
|
+
"@teambit/issues": "1.0.109"
|
26
24
|
},
|
27
25
|
"devDependencies": {
|
28
|
-
"@types/react": "^17.0.8",
|
29
26
|
"@types/semver": "7.3.4",
|
30
27
|
"@types/lodash": "4.14.165",
|
31
28
|
"@types/mocha": "9.1.0",
|
32
|
-
"@types/
|
33
|
-
"@types/
|
34
|
-
"@
|
35
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
29
|
+
"@types/jest": "^29.2.2",
|
30
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
31
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.14"
|
36
32
|
},
|
37
33
|
"peerDependencies": {
|
38
|
-
"
|
39
|
-
"react": "^
|
40
|
-
"
|
34
|
+
"react": "^17.0.0 || ^18.0.0",
|
35
|
+
"@types/react": "^18.2.12",
|
36
|
+
"@teambit/legacy": "1.0.624"
|
41
37
|
},
|
42
38
|
"license": "Apache-2.0",
|
43
39
|
"optionalDependencies": {},
|
@@ -51,7 +47,7 @@
|
|
51
47
|
},
|
52
48
|
"private": false,
|
53
49
|
"engines": {
|
54
|
-
"node": ">=
|
50
|
+
"node": ">=16.0.0"
|
55
51
|
},
|
56
52
|
"repository": {
|
57
53
|
"type": "git",
|
@@ -60,12 +56,9 @@
|
|
60
56
|
"keywords": [
|
61
57
|
"bit",
|
62
58
|
"bit-aspect",
|
59
|
+
"bit-core-aspect",
|
63
60
|
"components",
|
64
61
|
"collaboration",
|
65
|
-
"web"
|
66
|
-
"react",
|
67
|
-
"react-components",
|
68
|
-
"angular",
|
69
|
-
"angular-components"
|
62
|
+
"web"
|
70
63
|
]
|
71
64
|
}
|
package/tsconfig.json
CHANGED
@@ -1,38 +1,33 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
3
|
"lib": [
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"DOM.Iterable",
|
8
|
-
"ScriptHost"
|
4
|
+
"esnext",
|
5
|
+
"dom",
|
6
|
+
"dom.Iterable"
|
9
7
|
],
|
10
|
-
"target": "
|
11
|
-
"module": "
|
12
|
-
"jsx": "react",
|
13
|
-
"allowJs": true,
|
14
|
-
"composite": true,
|
8
|
+
"target": "es2020",
|
9
|
+
"module": "es2020",
|
10
|
+
"jsx": "react-jsx",
|
15
11
|
"declaration": true,
|
16
12
|
"sourceMap": true,
|
17
|
-
"skipLibCheck": true,
|
18
13
|
"experimentalDecorators": true,
|
19
|
-
"
|
14
|
+
"skipLibCheck": true,
|
20
15
|
"moduleResolution": "node",
|
21
16
|
"esModuleInterop": true,
|
22
|
-
"rootDir": ".",
|
23
17
|
"resolveJsonModule": true,
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"strictPropertyInitialization": false,
|
28
|
-
"strict": true,
|
29
|
-
"noImplicitAny": false,
|
30
|
-
"preserveConstEnums": true
|
18
|
+
"allowJs": true,
|
19
|
+
"outDir": "dist",
|
20
|
+
"emitDeclarationOnly": true
|
31
21
|
},
|
32
22
|
"exclude": [
|
23
|
+
"artifacts",
|
24
|
+
"public",
|
33
25
|
"dist",
|
26
|
+
"node_modules",
|
27
|
+
"package.json",
|
34
28
|
"esm.mjs",
|
35
|
-
"
|
29
|
+
"**/*.cjs",
|
30
|
+
"./dist"
|
36
31
|
],
|
37
32
|
"include": [
|
38
33
|
"**/*",
|
package/types/asset.d.ts
CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
5
5
|
declare module '*.svg' {
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
7
7
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
8
|
+
export const ReactComponent: FunctionComponent<
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
10
|
+
>;
|
9
11
|
const src: string;
|
10
12
|
export default src;
|
11
13
|
}
|
12
|
-
|
13
|
-
// @TODO Gilad
|
14
14
|
declare module '*.jpg' {
|
15
15
|
const value: any;
|
16
16
|
export = value;
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
27
27
|
const value: any;
|
28
28
|
export = value;
|
29
29
|
}
|
30
|
+
declare module '*.otf' {
|
31
|
+
const value: any;
|
32
|
+
export = value;
|
33
|
+
}
|
34
|
+
declare module '*.woff' {
|
35
|
+
const value: any;
|
36
|
+
export = value;
|
37
|
+
}
|
38
|
+
declare module '*.woff2' {
|
39
|
+
const value: any;
|
40
|
+
export = value;
|
41
|
+
}
|