add-to-calendar-button
Version:
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
23 lines (19 loc) • 721 B
TypeScript
/* eslint-disable no-unused-vars */
import type { ATCBActionEventConfig, AddToCalendarButtonType, EventDate, CustomLabelsObjectType } from '../index.d';
// MODULE
// no-pro
declare module 'add-to-calendar-button/no-pro' {
export function atcb_action(config: ATCBActionEventConfig, triggerElement?: HTMLElement, keyboardTrigger?: boolean): Promise<string>;
}
// WEB COMPONENT DECLARATION
declare global {
interface HTMLElementTagNameMap {
'add-to-calendar-button': AddToCalendarButtonType;
}
namespace JSX {
interface IntrinsicElements {
['add-to-calendar-button']: AddToCalendarButtonType;
}
}
}
export { ATCBActionEventConfig, AddToCalendarButtonType, EventDate, CustomLabelsObjectType };