mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-09 16:21:15 +00:00
fix(msteams): address review — fix stale JSDoc, document dist import
- Update stale JSDoc that still referenced HttpPlugin (line 348) - Add comment explaining why IHttpServerAdapter uses dist subpath (tsgo cannot resolve the re-export chain from the public barrel) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// IHttpServerAdapter is re-exported via the public barrel (`export * from './http'`)
|
||||
// but tsgo cannot resolve the chain. Use the dist subpath directly (type-only import).
|
||||
import type { IHttpServerAdapter } from "@microsoft/teams.apps/dist/http/index.js";
|
||||
import { formatUnknownError } from "./errors.js";
|
||||
import type { MSTeamsAdapter } from "./messenger.js";
|
||||
@@ -345,7 +347,7 @@ async function deleteActivityViaRest(params: {
|
||||
* Build a CloudAdapter-compatible adapter using the Teams SDK REST client.
|
||||
*
|
||||
* This replaces the previous CloudAdapter from @microsoft/agents-hosting.
|
||||
* For incoming requests: the App's HttpPlugin handles JWT validation.
|
||||
* For incoming requests: the App's HTTP server handles JWT validation.
|
||||
* For proactive sends: uses the Bot Framework REST API via
|
||||
* @microsoft/teams.api Client.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user