A directive implements a custom behaviour for a matching HTML attribute.
For more information, see the mizu.sh documentation.
{ readonly name: Definition["Name"] extends RegExp ? RegExp : Definition["Name"] extends string ? string : (string | RegExp); readonly phase: Phase; readonly multiple?: boolean; readonly typings?: Definition["Typings"]; readonly init?: (renderer: Renderer) => Promisable<void>; readonly setup?: (renderer: Renderer,element: HTMLElement | Comment,_: { cache: Definition["Cache"]; context: Context; state: DeepReadonly<State>; },) => Promisable<void | Partial<{ state: State; execute: boolean; } | false>>; readonly execute?: (renderer: Renderer,element: HTMLElement | Comment,_: { cache: Definition["Cache"]; context: Context; state: DeepReadonly<State>; attributes: Readonly<Attr[]>; },) => Promisable<void | Partial<{ element: HTMLElement | Comment; context: Context; state: State; final: boolean; }>>; readonly cleanup?: (renderer: Renderer,element: HTMLElement | Comment,_: { cache: Definition["Cache"]; context: Context; state: DeepReadonly<State>; },) => Promisable<void>; }
& (Definition["Prefix"] extends true ? { readonly prefix: string; } : { })
& (Definition["Name"] extends RegExp ? { readonly prefix: string; } : { })
& (Definition["Default"] extends true ? { readonly default: string; } : { })