Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Apr 15, 2020
1 parent ddf4409 commit 2689f3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { Readable } from 'stream';
import { createRulesStreamFromNdJson, transformDataToNdjson } from './create_stream_from_ndjson';
import { createPromiseFromStreams } from '../../../../../../../src/legacy/utils/streams';
import { transformDataToNdjson } from './create_stream_from_ndjson';
import { ImportRuleAlertRest } from '../../lib/detection_engine/types';
import { BadRequestError } from '../../lib/detection_engine/errors/bad_request_error';
import { sampleRule } from '../../lib/detection_engine/signals/__mocks__/es_results';

type PromiseFromStreams = ImportRuleAlertRest | Error;

export const getOutputSample = (): Partial<ImportRuleAlertRest> => ({
rule_id: 'rule-1',
output_index: '.siem-signals',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
import { Transform } from 'stream';
import { has, isString } from 'lodash/fp';
import { ImportRuleAlertRest } from '../../lib/detection_engine/types';
import {
createSplitStream,
createMapStream,
createFilterStream,
createConcatStream,
} from '../../../../../../../src/legacy/utils/streams';
import { createMapStream, createFilterStream } from '../../../../../../../src/legacy/utils/streams';
import { importRulesSchema } from '../../lib/detection_engine/routes/schemas/import_rules_schema';
import { BadRequestError } from '../../lib/detection_engine/errors/bad_request_error';

Expand Down

0 comments on commit 2689f3b

Please sign in to comment.