add-to-calendar-button-occumed
Version:
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
25 lines (21 loc) • 1.02 kB
TypeScript
/* eslint-disable no-unused-vars */
import type { ATCBActionEventConfig, AddToCalendarButtonType, EventDate, CustomLabelsObjectType } from '../index.d';
// MODULE
// unstyle
declare module 'add-to-calendar-button/unstyle' {
export function atcb_action(config: ATCBActionEventConfig, triggerElement?: HTMLElement, keyboardTrigger?: boolean): Promise<string>;
export function atcb_generate_ty(host: HTMLElement, data: object): null;
export function atcb_generate_timestring(dates: EventDate[], language?: string, subEvent?: string | number, decorate?: boolean, browserTimeOverride?: boolean, enforceYear?: boolean, hideTimeZone?: boolean): 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 };