UNPKG

@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

7 lines (6 loc) • 450 B
import { IFileConsentInvokeActivity, InvokeResponse } from '@microsoft/teams.api'; import { IActivityContext } from '../../contexts'; import { RouteHandler } from '../../types'; export type FileConsentActivityRoutes = { [K in IFileConsentInvokeActivity['value']['action'] as `file.consent.${K}`]?: RouteHandler<IActivityContext<IFileConsentInvokeActivity>, InvokeResponse<'fileConsent/invoke'> | InvokeResponse<'fileConsent/invoke'>['body']>; };