@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.91 kB
TypeScript
import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core.js';
import { MSTeamsData } from './ms-teams-data.js';
type SignInActionOptions = SubmitActionOptions & {
data: MSTeamsData<ISignInData>;
};
/**
* @deprecated This type is deprecated. Please use {@link ISigninSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
interface ISignInAction extends ISubmitAction {
/**
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
*/
data: MSTeamsData<ISignInData>;
}
/**
* @deprecated This class is deprecated. Please use {@link SigninSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
declare class SignInAction extends SubmitAction implements ISignInAction {
/**
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
*/
data: MSTeamsData<ISignInData>;
constructor(value: string, options?: SubmitActionOptions);
static from(options: SignInActionOptions): SignInAction;
withData(value: ISignInData): this;
withValue(value: string): this;
}
/**
* @deprecated This type is deprecated. Please use {@link ISigninSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
interface ISignInData {
type: 'signin';
/**
* Set to the `URL` where you want to redirect.
*/
value: string;
}
/**
* @deprecated This class is deprecated. Please use {@link SigninSubmitActionData} instead. This will be removed in a future version of the SDK.
*/
declare class SignInData implements ISignInData {
type: 'signin';
/**
* Set to the `URL` where you want to redirect.
*/
value: string;
constructor(value: string);
}
export { type ISignInAction, type ISignInData, SignInAction, type SignInActionOptions, SignInData };