[APM] Add type for route options (#161152)

Add missing type for route options. This is necessary for specifying
`maxBytes`.

cc @LikeTheSalad
This commit is contained in:
Søren Louv-Jansen 2023-07-05 14:47:42 +02:00 committed by GitHub
parent f2e773d435
commit bc4ffb6634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
@ -41,7 +42,7 @@ export interface APMRouteCreateOptions {
>;
body?: { accepts: Array<'application/json' | 'multipart/form-data'> };
disableTelemetry?: boolean;
};
} & RouteConfigOptions<any>;
}
export type TelemetryUsageCounter = ReturnType<