UNPKG

@microsoft/teams.cards

Version:

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

41 lines (38 loc) 1.3 kB
import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.js'; import '../../common/associated-inputs.js'; import '../base.js'; type InvokeActionOptions = SubmitActionOptions & { data: MSTeamsData<IInvokeData>; }; interface IInvokeAction extends ISubmitAction { /** * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties. */ data: MSTeamsData<IInvokeData>; } declare class InvokeAction extends SubmitAction implements IInvokeAction { /** * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties. */ data: MSTeamsData<IInvokeData>; constructor(value?: any, options?: SubmitActionOptions); static from(options: InvokeActionOptions): InvokeAction; withData(value: IInvokeData): this; withValue(value: any): this; } interface IInvokeData { type: 'invoke'; /** * Set the value to send with the invoke */ value?: any; } declare class InvokeData implements IInvokeData { type: 'invoke'; /** * Set the value to send with the invoke */ value?: any; constructor(value?: any); } export { type IInvokeAction, type IInvokeData, InvokeAction, type InvokeActionOptions, InvokeData };