Skip to content

Commit

Permalink
[APM] Add type for route options (elastic#161152)
Browse files Browse the repository at this point in the history
Add missing type for route options. This is necessary for specifying
`maxBytes`.

cc @LikeTheSalad
  • Loading branch information
sorenlouv authored Jul 5, 2023
1 parent f2e773d commit bc4ffb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/apm/server/routes/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Logger,
KibanaRequest,
CoreStart,
RouteConfigOptions,
} from '@kbn/core/server';
import { IRuleDataClient } from '@kbn/rule-registry-plugin/server';
import { AlertingApiRequestHandlerContext } from '@kbn/alerting-plugin/server';
Expand Down Expand Up @@ -41,7 +42,7 @@ export interface APMRouteCreateOptions {
>;
body?: { accepts: Array<'application/json' | 'multipart/form-data'> };
disableTelemetry?: boolean;
};
} & RouteConfigOptions<any>;
}

export type TelemetryUsageCounter = ReturnType<
Expand Down

0 comments on commit bc4ffb6

Please sign in to comment.