Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed May 28, 2021
1 parent 9f7eb17 commit 99b25fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ws/src/Protocol/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Context} from "@bunt/unit";
import {ApplyContext, Context} from "@bunt/unit";
import {ProtoHandleAbstract} from "./index";

export type HandleProtoType<C extends Context, A extends ProtoHandleAbstract<C, any>> = {
new(context: C, state: any): A;
new(context: ApplyContext<C>, state: any): A;
isSupported(protocol: string): boolean
};

0 comments on commit 99b25fe

Please sign in to comment.