Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Nov 22, 2023
1 parent addcf87 commit 76aa596
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
6 changes: 3 additions & 3 deletions x-pack/packages/ml/data_view_utils/actions/create.ts
Expand Up @@ -7,7 +7,7 @@

import type { DataViewsService, RuntimeField } from '@kbn/data-views-plugin/common';

import type { DataViewApiResponseSchema } from '../types/api_response_schema';
import type { CreateDataViewApiResponseSchema } from '../types/api_create_response_schema';

interface CreateDataViewFnOptions {
dataViewsService: DataViewsService;
Expand All @@ -25,8 +25,8 @@ export const createDataViewFn = async ({
// A fall back id to be able to track the response
// because in case of an error we don't get a data view id.
errorFallbackId,
}: CreateDataViewFnOptions): Promise<DataViewApiResponseSchema> => {
const response: DataViewApiResponseSchema = {
}: CreateDataViewFnOptions): Promise<CreateDataViewApiResponseSchema> => {
const response: CreateDataViewApiResponseSchema = {
dataViewsCreated: [],
dataViewsErrors: [],
};
Expand Down
13 changes: 13 additions & 0 deletions x-pack/packages/ml/data_view_utils/index.ts
@@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export { createDataViewFn } from './actions/create';
export { deleteDataViewFn } from './actions/delete';
export {
dataViewCreateQuerySchema,
type DataViewCreateQuerySchema,
} from './schemas/api_create_query_schema';
6 changes: 5 additions & 1 deletion x-pack/packages/ml/data_view_utils/tsconfig.json
Expand Up @@ -15,5 +15,9 @@
"exclude": [
"target/**/*"
],
"kbn_references": []
"kbn_references": [
"@kbn/data-views-plugin",
"@kbn/config-schema",
"@kbn/ml-error-utils",
]
}
1 change: 1 addition & 0 deletions x-pack/plugins/ml/tsconfig.json
Expand Up @@ -111,5 +111,6 @@
"@kbn/alerts-as-data-utils",
"@kbn/rule-registry-plugin",
"@kbn/securitysolution-ecs",
"@kbn/ml-data-view-utils",
],
}
3 changes: 2 additions & 1 deletion x-pack/plugins/transform/tsconfig.json
Expand Up @@ -69,7 +69,8 @@
"@kbn/content-management-plugin",
"@kbn/react-kibana-mount",
"@kbn/core-plugins-server",
"@kbn/data-view-editor-plugin"
"@kbn/data-view-editor-plugin",
"@kbn/ml-data-view-utils"
],
"exclude": [
"target/**/*",
Expand Down

0 comments on commit 76aa596

Please sign in to comment.