UNPKG

adonisjs-livewire

Version:

A front-end framework for AdonisJS

27 lines (26 loc) 780 B
import type { Edge } from 'edge.js'; interface ComponentProps { all(): Record<string, any>; has(key: string): boolean; get(key: string, defaultValue?: any): any; only(keys: string[]): ComponentProps; except(keys: string[]): ComponentProps; merge(values: Record<string, any>): ComponentProps; mergeIf(conditional: any, values: Record<string, any>): ComponentProps; mergeUnless(conditional: any, values: Record<string, any>): ComponentProps; toAttrs(): string; } export declare abstract class ViewComponent { view: Edge; $props: ComponentProps; $slots: { [key: string]: any; }; $caller: { filename: string; line: number; col: number; }; abstract render(): Promise<string>; } export {};