mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix(types): unblock tsgo baseline for plugin routes and harness
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
readJsonBodyWithLimit,
|
||||
registerPluginHttpRoute,
|
||||
registerWebhookTarget,
|
||||
registerPluginHttpRoute,
|
||||
rejectNonPostWebhookRequest,
|
||||
isDangerousNameMatchingEnabled,
|
||||
resolveAllowlistProviderRuntimeGroupPolicy,
|
||||
|
||||
@@ -33,7 +33,6 @@ function createApi(params: {
|
||||
logger: { info() {}, warn() {}, error() {} },
|
||||
registerTool() {},
|
||||
registerHook() {},
|
||||
registerHttpHandler() {},
|
||||
registerHttpRoute() {},
|
||||
registerChannel() {},
|
||||
registerGatewayMethod() {},
|
||||
|
||||
@@ -128,7 +128,7 @@ export async function sendRequest(
|
||||
authorization?: string;
|
||||
method?: string;
|
||||
},
|
||||
) {
|
||||
): Promise<ReturnType<typeof createResponse>> {
|
||||
const response = createResponse();
|
||||
await dispatchRequest(server, createRequest(params), response.res);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user