1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/extensions/registries/protocol-handler-registry.ts
Sebastian Malton 2544ba9e09 Convert the extension API to use an array for registering handlers
- switch design to execute both main and renderer handlers
  simaltaneously, without any overlap checking

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:26 -05:00

11 lines
297 B
TypeScript

import { RouteHandler } from "../../common/protocol-handler";
/**
* ProtocolHandlerRegistration is the data required for an extension to register
* a handler to a specific path or dynamic path.
*/
export interface ProtocolHandlerRegistration {
pathSchema: string;
handler: RouteHandler;
}