Skip to content

Commit

Permalink
Fix (and tweak) type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
afgomez authored and Alejandro Fernández Gómez committed Oct 26, 2020
1 parent 9d0f942 commit aac524d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { RequestHandlerContext } from 'src/core/server';
import { JsonArray } from '../../../../common/typed_json';
import {
LogEntriesAdapter,
LogItemHit,
LogEntriesParams,
LogEntryDocument,
LogEntryQuery,
Expand All @@ -26,13 +27,6 @@ import { KibanaFramework } from '../framework/kibana_framework_adapter';

const TIMESTAMP_FORMAT = 'epoch_millis';

interface LogItemHit {
_index: string;
_id: string;
fields: { [key: string]: [value: unknown] };
sort: [number, number];
}

export class InfraKibanaLogEntriesAdapter implements LogEntriesAdapter {
constructor(private readonly framework: KibanaFramework) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { sortBy } from 'lodash';

import { RequestHandlerContext } from 'src/core/server';
import { JsonObject } from '../../../../common/typed_json';
import { JsonArray, JsonObject } from '../../../../common/typed_json';
import {
LogEntriesSummaryBucket,
LogEntriesSummaryHighlightsBucket,
Expand Down Expand Up @@ -310,10 +310,10 @@ export class InfraLogEntriesDomain {
}
}

interface LogItemHit {
export interface LogItemHit {
_index: string;
_id: string;
fields: { [field: string]: [value: unknown] };
fields: { [field: string]: [value: JsonArray] };
sort: [number, number];
}

Expand Down

0 comments on commit aac524d

Please sign in to comment.