Packages
primer_live
0.10.0
An implementation of GitHub's Primer Design System for Phoenix LiveView.
Current section
Files
Jump to
Current section
Files
priv/static/prompt.d.ts
import { ViewHook, LiveSocket } from "phoenix_live_view";
/**
Prompt Hook handles status callbacks.
*/
interface IPrompt extends ViewHook<TPrompt> {
handlePromptOpen?: (evt: CustomEvent) => void;
handlePromptClose?: (evt: CustomEvent) => void;
handlePromptToggle?: (evt: CustomEvent) => void;
}
export type TPrompt = IPrompt & {
liveSocket?: LiveSocket;
};
export declare const Prompt: TPrompt;
declare global {
interface Window {
Prompt: TPrompt;
}
}
export {};