IOweb/node_modules/astro/dist/vite-plugin-html/transform/slots.d.ts
2026-07-03 15:07:38 -05:00

11 lines
380 B
TypeScript

export declare const SLOT_PREFIX = "___SLOTS___";
export interface SlotReplacement {
start: number;
end: number;
value: string;
}
/**
* Find every `<slot>` (excluding `is:inline` ones) and describe how to replace it
* with a `${___SLOTS___[name] ?? `fallback`}` template literal expression.
*/
export declare function collectSlots(code: string): SlotReplacement[];