Skip to content

Commit

Permalink
R Austin review: More specific related type?
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed May 18, 2020
1 parent fe978f6 commit 7750c97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const resolverMiddlewareFactory: MiddlewareFactory = context => {
if (apiResults instanceof Error) {
api.dispatch({
type: 'serverFailedToReturnRelatedEventData',
payload: [results[0]],
payload: results[0],
});
continue;
}
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/endpoint/public/embeddables/resolver/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Store } from 'redux';
import { ResolverAction } from './store/actions';
export { ResolverAction } from './store/actions';
import { ResolverEvent } from '../../../common/types';
import { eventType } from '../../../common/models/event';

/**
* Redux state for the Resolver feature. Properties on this interface are populated via multiple reducers using redux's `combineReducers`.
Expand Down Expand Up @@ -137,7 +138,7 @@ export type CameraState = {
export interface RelatedEventDataEntry {
relatedEvents: Array<{
relatedEvent: ResolverEvent;
relatedEventType: string;
relatedEventType: ReturnType<typeof eventType>;
}>;
}

Expand Down

0 comments on commit 7750c97

Please sign in to comment.