@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.33 kB
TypeScript
import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.js';
import '../../common/associated-inputs.js';
import '../base.js';
type IMBackActionOptions = SubmitActionOptions & {
data: MSTeamsData<IIMBackData>;
};
interface IIMBackAction extends ISubmitAction {
/**
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
*/
data: MSTeamsData<IIMBackData>;
}
declare class IMBackAction extends SubmitAction implements IIMBackAction {
/**
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
*/
data: MSTeamsData<IIMBackData>;
constructor(value: string, options?: SubmitActionOptions);
static from(options: IMBackActionOptions): IMBackAction;
withData(value: IIMBackData): this;
withValue(value: string): this;
}
interface IIMBackData {
type: 'imBack';
/**
* String that needs to be echoed back in the chat.
*/
value: string;
}
declare class IMBackData implements IIMBackData {
type: 'imBack';
/**
* String that needs to be echoed back in the chat.
*/
value: string;
constructor(value: string);
}
export { type IIMBackAction, type IIMBackData, IMBackAction, type IMBackActionOptions, IMBackData };