Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Nov 19, 2020
1 parent 277b1b3 commit 7bb5f73
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import { createHref } from '../../shared/Links/url_helpers';

type CorrelationsApiResponse =
| APIReturnType<'GET /api/apm/correlations/failed_transactions'>
| APIReturnType<'GET /api/apm/correlations/slow_transactions';
| APIReturnType<'GET /api/apm/correlations/slow_transactions'>;

type SignificantTerm = NonNullable<
CorrelationsApiResponse
>['significantTerms'][0];
NonNullable<CorrelationsApiResponse>['significantTerms']
>[0];

interface Props<T> {
significantTerms?: T[];
Expand Down

0 comments on commit 7bb5f73

Please sign in to comment.