Add type argument for RouteHandlerContext #57588
Labels
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
We currently only support "extending" the RouteHandlerContext by reopening the type:
This has a few problems:
Instead, we could add a type argument to
IRouter
(and related types, likeRouteHandler
) for the RouteHandlerContext so plugins can explicitly specify which contexts they expect from their own context providers + any specified by their dependencies. Example:The text was updated successfully, but these errors were encountered: