@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
29 lines (26 loc) • 899 B
text/typescript
import { IAction, Action } from './base.mjs';
/**
* When invoked, show the given url either by launching it in an external web browser or showing within an embedded web browser.
*/
interface IOpenUrlAction extends IAction {
type: 'Action.OpenUrl';
/**
* The URL to open.
*/
url: string;
}
type OpenUrlOptions = Omit<IOpenUrlAction, 'type' | 'url'>;
/**
* When invoked, show the given url either by launching it in an external web browser or showing within an embedded web browser.
*/
declare class OpenUrlAction extends Action implements IOpenUrlAction {
type: 'Action.OpenUrl';
/**
* The URL to open.
*/
url: string;
constructor(url: string, options?: OpenUrlOptions);
static from(options: Omit<IOpenUrlAction, 'type'>): OpenUrlAction;
withUrl(value: string): this;
}
export { type IOpenUrlAction, OpenUrlAction, type OpenUrlOptions };