UNPKG

@stacksjs/stx

Version:

A Bun plugin that allows for using Laravel Blade-like syntax.

16 lines (15 loc) 735 B
import type { StxOptions, WebComponent } from './types'; export declare function buildWebComponents(options: StxOptions, dependencies: Set<string>): Promise<string[]>; declare function buildWebComponent(component: WebComponent, options: StxOptions, dependencies: Set<string>): Promise<string | null>; declare interface WebComponentCodeOptions { name: string tag: string baseElement?: string source: string shadowDOM: boolean template: boolean styleSource?: string attributes?: string[] } declare function generateWebComponentCode(options: WebComponentCodeOptions): string; export declare function webComponentDirectiveHandler(content: string, params: string[], context: Record<string, any>, _filePath: string): string;