@microsoft/teams.apps
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code
8 lines (7 loc) • 408 B
TypeScript
import { Activity } from '@microsoft/teams.api';
/**
* The tenant an activity belongs to, read from the conversation first and from channel data second.
*
* Reading only `conversation.tenantId` silently misses the ones that arrive as `channelData.tenant` depending on the activity. An empty tenant is treated as absent.
*/
export declare function extractTenantId(activity: Activity): string | undefined;