mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add tsconfig ref to vis_type_vega (#89551)
This commit is contained in:
parent
5f8f21bce5
commit
749c01d898
4 changed files with 39 additions and 1 deletions
|
@ -13,7 +13,14 @@ import { VegaVisualizationDependencies } from './plugin';
|
|||
import { getNotifications, getData } from './services';
|
||||
import type { VegaView } from './vega_view/vega_view';
|
||||
|
||||
export const createVegaVisualization = ({ getServiceSettings }: VegaVisualizationDependencies) =>
|
||||
type VegaVisType = new (el: HTMLDivElement, fireEvent: IInterpreterRenderHandlers['event']) => {
|
||||
render(visData: VegaParser): Promise<void>;
|
||||
destroy(): void;
|
||||
};
|
||||
|
||||
export const createVegaVisualization = ({
|
||||
getServiceSettings,
|
||||
}: VegaVisualizationDependencies): VegaVisType =>
|
||||
class VegaVisualization {
|
||||
private readonly dataPlugin = getData();
|
||||
private vegaView: InstanceType<typeof VegaView> | null = null;
|
||||
|
|
28
src/plugins/vis_type_vega/tsconfig.json
Normal file
28
src/plugins/vis_type_vega/tsconfig.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"server/**/*",
|
||||
"public/**/*",
|
||||
"*.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../data/tsconfig.json" },
|
||||
{ "path": "../visualizations/tsconfig.json" },
|
||||
{ "path": "../maps_legacy/tsconfig.json" },
|
||||
{ "path": "../expressions/tsconfig.json" },
|
||||
{ "path": "../inspector/tsconfig.json" },
|
||||
{ "path": "../home/tsconfig.json" },
|
||||
{ "path": "../usage_collection/tsconfig.json" },
|
||||
{ "path": "../kibana_utils/tsconfig.json" },
|
||||
{ "path": "../kibana_react/tsconfig.json" },
|
||||
{ "path": "../vis_default_editor/tsconfig.json" },
|
||||
]
|
||||
}
|
|
@ -53,6 +53,7 @@
|
|||
"src/plugins/vis_type_timelion/**/*",
|
||||
"src/plugins/vis_type_timeseries/**/*",
|
||||
"src/plugins/vis_type_vislib/**/*",
|
||||
"src/plugins/vis_type_vega/**/*",
|
||||
"src/plugins/vis_type_xy/**/*",
|
||||
"src/plugins/visualizations/**/*",
|
||||
"src/plugins/visualize/**/*",
|
||||
|
@ -109,6 +110,7 @@
|
|||
{ "path": "./src/plugins/vis_type_timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timeseries/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vislib/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vega/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_xy/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
{ "path": "./src/plugins/vis_type_timelion/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_timeseries/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vislib/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_vega/tsconfig.json" },
|
||||
{ "path": "./src/plugins/vis_type_xy/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue