chore: 类型补全

This commit is contained in:
手瓜一十雪
2024-08-08 14:29:29 +08:00
parent 8fd5fa185b
commit e2a6e3ea58
8 changed files with 580 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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) {
}
}