UNPKG

@microsoft/teams.api

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t

40 lines (37 loc) • 984 B
import { TabContext } from './tab-context.mjs'; import { TabEntityContext } from './tab-entity-context.mjs'; /** * * Invoke ('tab/submit') request value payload. * */ type TabSubmit = { /** * @member {TabEntityContext} [tabContext] The current tab's entity request context. */ tabContext?: TabEntityContext; /** * @member {TabContext} [context] The current user context, i.e., the current theme. */ context?: TabContext; /** * @member {TabSubmitData} [data] User input. Free payload containing properties of key-value pairs. */ data?: TabSubmitData; }; /** * * Invoke ('tab/submit') request value payload data. * */ type TabSubmitData = { /** * @member {string} [type] Should currently be 'tab/submit'. */ type?: string; /** * @member {any} [any] Additional properties not otherwise defined in TabSubmit. */ [properties: string]: unknown; }; export type { TabSubmit, TabSubmitData };