From 33ef3e7d59c2a28482afe5c4fc0064b778596384 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Sat, 10 Aug 2024 14:00:56 +0800 Subject: [PATCH] update: interface IOB11NetworkAdapter --- src/onebot/network/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/onebot/network/index.ts diff --git a/src/onebot/network/index.ts b/src/onebot/network/index.ts new file mode 100644 index 00000000..18d2840f --- /dev/null +++ b/src/onebot/network/index.ts @@ -0,0 +1,7 @@ +import BaseAction from '@/onebot/action/BaseAction'; +import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent'; + +export interface IOB11NetworkAdapter { + registerAction, P, R>(action: T): void; + onEvent(event: T): void; +}