Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
768 B
Text
16 lines
768 B
Text
export declare let optionsSupported: boolean;
|
|
export declare let onceSupported: boolean;
|
|
export declare type EventHandler<K extends keyof HTMLElementEventMap> = (this: HTMLElement, event: HTMLElementEventMap[K]) => any;
|
|
export declare type TaggedEventHandler<K extends keyof HTMLElementEventMap> = EventHandler<K> & {
|
|
__once?: EventHandler<K>;
|
|
};
|
|
/**
|
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
*
|
|
* @param node the element
|
|
* @param eventName the event name
|
|
* @param handle the handler
|
|
* @param options event options
|
|
*/
|
|
declare function addEventListener<K extends keyof HTMLElementEventMap>(node: HTMLElement, eventName: K, handler: TaggedEventHandler<K>, options?: boolean | AddEventListenerOptions): void;
|
|
export default addEventListener;
|