mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:28:26 +00:00
chore: Emit TypeScript declaration files so that we can type-check the extensions folder soon.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { WebhookRequestBody } from "@line/bot-sdk";
|
||||
import type { Request, Response, NextFunction } from "express";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { logVerbose } from "../globals.js";
|
||||
@@ -71,7 +72,7 @@ export function createLineWebhookCallback(
|
||||
bot: LineBot,
|
||||
channelSecret: string,
|
||||
path = "/line/webhook",
|
||||
) {
|
||||
): { path: string; handler: (req: Request, res: Response, _next: NextFunction) => Promise<void> } {
|
||||
const { handler } = startLineWebhook({
|
||||
channelSecret,
|
||||
onEvents: bot.handleWebhook,
|
||||
|
||||
Reference in New Issue
Block a user