mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-26 19:01:28 +08:00
update: interface IOB11NetworkAdapter
This commit is contained in:
parent
704e5f7134
commit
33ef3e7d59
7
src/onebot/network/index.ts
Normal file
7
src/onebot/network/index.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import BaseAction from '@/onebot/action/BaseAction';
|
||||
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
|
||||
|
||||
export interface IOB11NetworkAdapter {
|
||||
registerAction<T extends BaseAction<P, R>, P, R>(action: T): void;
|
||||
onEvent<T extends OB11BaseEvent>(event: T): void;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user