@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/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=c
52 lines (49 loc) • 1.92 kB
TypeScript
import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core.js';
import { MSTeamsData } from './ms-teams-data.js';
type IMBackActionOptions = SubmitActionOptions & {
data: MSTeamsData<IIMBackData>;
};
/**
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
interface IIMBackAction extends ISubmitAction {
/**
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
*/
data: MSTeamsData<IIMBackData>;
}
/**
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
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;
}
/**
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
interface IIMBackData {
type: 'imBack';
/**
* String that needs to be echoed back in the chat.
*/
value: string;
}
/**
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
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 };