Current section

Files

Jump to
live_vue priv static hooks.d.ts
Raw

priv/static/hooks.d.ts

import { ComponentMap, LiveVue, LiveVueApp, LiveVueOptions } from "./types.js";
export declare const getVueHook: ({ resolve, setup }: LiveVueApp) => LiveVue;
/**
* Returns the hooks for the LiveVue app.
* @param components - The components to use in the app.
* @param options - The options for the LiveVue app.
* @returns The hooks for the LiveVue app.
*/
type VueHooks = {
VueHook: LiveVue;
};
type getHooksAppFn = (app: LiveVueApp) => VueHooks;
type getHooksComponentsOptions = {
initializeApp?: LiveVueOptions["setup"];
};
type getHooksComponentsFn = (components: ComponentMap, options: getHooksComponentsOptions) => VueHooks;
export declare const getHooks: getHooksComponentsFn | getHooksAppFn;
export {};