Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Aug 20, 2021
1 parent 80bc75c commit f9c3928
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Schema = PublicMethodsOf<RuleDataPluginService>;

const createRuleDataPluginService = () => {
const mocked: jest.Mocked<Schema> = {
getBaseNameByRegistrationContext: jest.fn(),
getResourcePrefix: jest.fn(),
getResourceName: jest.fn(),
isWriteEnabled: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
* 2.0.
*/

import type { AlertConsumers as AlertConsumersTyped } from '@kbn/rule-data-utils';
// @ts-expect-error
import { AlertConsumers as AlertConsumersNonTyped } from '@kbn/rule-data-utils/target_node/alerts_as_data_rbac';
import { Router } from 'react-router-dom';
import React, { useCallback, useRef } from 'react';
import ReactDOM from 'react-dom';
Expand All @@ -17,8 +14,6 @@ import { KibanaContextProvider } from '../../../../../../../../src/plugins/kiban
import { TimelinesUIStart } from '../../../../../../../plugins/timelines/public';
import { DataPublicPluginStart } from '../../../../../../../../src/plugins/data/public';

const AlertConsumers: typeof AlertConsumersTyped = AlertConsumersNonTyped;

type CoreStartTimelines = CoreStart & { data: DataPublicPluginStart };

/**
Expand All @@ -42,7 +37,6 @@ export function renderApp(
ReactDOM.unmountComponentAtNode(parameters.element);
};
}
const ALERT_RULE_CONSUMER = [AlertConsumers.SIEM];

const AppRoot = React.memo(
({
Expand All @@ -67,7 +61,6 @@ const AppRoot = React.memo(
{(timelinesPluginSetup &&
timelinesPluginSetup.getTGrid &&
timelinesPluginSetup.getTGrid<'standalone'>({
alertConsumers: ALERT_RULE_CONSUMER,
appId: 'securitySolution',
type: 'standalone',
casePermissions: {
Expand Down

0 comments on commit f9c3928

Please sign in to comment.