mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-27 23:30:24 +00:00
24 lines
556 B
TypeScript
24 lines
556 B
TypeScript
interface IDispatcherAdapter {
|
|
dispatchRequest(arg: unknown): void;
|
|
|
|
dispatchCall(arg: unknown): void;
|
|
|
|
dispatchCallWithJson(arg: unknown): void;
|
|
}
|
|
|
|
export interface NodeIDispatcherAdapter extends IDispatcherAdapter {
|
|
// eslint-disable-next-line @typescript-eslint/no-misused-new
|
|
new(adapter: IDispatcherAdapter): NodeIDispatcherAdapter;
|
|
}
|
|
|
|
export class DispatcherAdapter implements IDispatcherAdapter {
|
|
dispatchRequest(arg: unknown) {
|
|
}
|
|
|
|
dispatchCall(arg: unknown) {
|
|
}
|
|
|
|
dispatchCallWithJson(arg: unknown) {
|
|
}
|
|
}
|