UNPKG

@maizzle/framework

Version:

Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.

17 lines (16 loc) 471 B
import { EventMap, EventName } from "../events/index.js"; //#region src/composables/useEvent.d.ts /** * Register an event handler from within an SFC's <script setup>. * * Usage: * ```ts * useEvent('beforeRender', ({ config, template }) => { * return template.source.replace('foo', 'bar') * }) * ``` */ declare function useEvent<K extends EventName>(name: K, handler: EventMap[K]): void; //#endregion export { useEvent }; //# sourceMappingURL=useEvent.d.ts.map