1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-03-02 11:03:32 -05:00
parent 9b3e31394d
commit 0775b6a42f

View File

@ -6,8 +6,8 @@ import { getInjectionToken } from "@ogre-tools/injectable";
import type { RequestChannel } from "./request-channel-listener-injection-token"; import type { RequestChannel } from "./request-channel-listener-injection-token";
export interface RequestFromChannel { export interface RequestFromChannel {
<Request, Response>(channel: RequestChannel<Request, Response>, request: Request): Promise<Response>; <Request, Response>(channel: RequestChannel<Request, Response>, request: Request): Promise<Awaited<Response>>;
<Response>(channel: RequestChannel<void, Response>): Promise<Response>; <Response>(channel: RequestChannel<void, Response>): Promise<Awaited<Response>>;
} }
export const requestFromChannelInjectionToken = getInjectionToken<RequestFromChannel>({ export const requestFromChannelInjectionToken = getInjectionToken<RequestFromChannel>({