update: interface IOB11NetworkAdapter

This commit is contained in:
Wesley F. Young 2024-08-10 14:00:56 +08:00
parent 704e5f7134
commit 33ef3e7d59

View 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;
}