@hotwired/turbo
Version:
The speed of a single-page web application without having to write any JavaScript
13 lines (12 loc) • 616 B
TypeScript
export declare type DispatchOptions = {
target: EventTarget;
cancelable: boolean;
detail: any;
};
export declare function dispatch(eventName: string, { target, cancelable, detail }?: Partial<DispatchOptions>): CustomEvent<any>;
export declare function nextAnimationFrame(): Promise<void>;
export declare function nextEventLoopTick(): Promise<void>;
export declare function nextMicrotask(): Promise<void>;
export declare function parseHTMLDocument(html?: string): Document;
export declare function unindent(strings: TemplateStringsArray, ...values: any[]): string;
export declare function uuid(): string;