Skip to content

Commit

Permalink
[HTTP] Remove description from options in versioned router options (
Browse files Browse the repository at this point in the history
elastic#181989)

## Summary

Ensure that we only provide one option for providing `description` to
versioned routes.
  • Loading branch information
jloleysens committed May 1, 2024
1 parent 1633c0b commit 7fc5494
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type VersionedRouteConfig<Method extends RouteMethod> = Omit<
RouteConfig<unknown, unknown, unknown, Method>,
'validate' | 'options'
> & {
options?: Omit<RouteConfigOptions<Method>, 'access'>;
options?: Omit<RouteConfigOptions<Method>, 'access' | 'description'>;
/** See {@link RouteConfigOptions<RouteMethod>['access']} */
access: Exclude<RouteConfigOptions<Method>['access'], undefined>;
/**
Expand Down

0 comments on commit 7fc5494

Please sign in to comment.