Skip to content

Commit bc4ffb6

Browse files
authored
[APM] Add type for route options (#161152)
Add missing type for route options. This is necessary for specifying `maxBytes`. cc @LikeTheSalad
1 parent f2e773d commit bc4ffb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugins/apm/server/routes/typings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Logger,
1212
KibanaRequest,
1313
CoreStart,
14+
RouteConfigOptions,
1415
} from '@kbn/core/server';
1516
import { IRuleDataClient } from '@kbn/rule-registry-plugin/server';
1617
import { AlertingApiRequestHandlerContext } from '@kbn/alerting-plugin/server';
@@ -41,7 +42,7 @@ export interface APMRouteCreateOptions {
4142
>;
4243
body?: { accepts: Array<'application/json' | 'multipart/form-data'> };
4344
disableTelemetry?: boolean;
44-
};
45+
} & RouteConfigOptions<any>;
4546
}
4647

4748
export type TelemetryUsageCounter = ReturnType<

0 commit comments

Comments
 (0)