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:
RamuKaka
2026-04-04 10:48:48 -07:00
committed by Brad Groux
parent 4eb0034738
commit 414bf8a1f8

View File

@@ -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.
*/