vite-plugin-shopify-theme-islands
Version:
Vite plugin for island architecture in Shopify themes
12 lines (11 loc) • 559 B
TypeScript
export interface RuntimeObservability {
noteInitialWaits(tagName: string, initialDiagnosticParts: string[], initialWalkComplete: boolean): void;
warnOnConflictingLoadGate(tagName: string, element: HTMLElement, conflictSignature: string): void;
clear(tagNames?: Iterable<string>): void;
}
export interface RuntimeObservabilityDeps {
debug: boolean;
isObserved(element: Element): boolean;
console: Pick<Console, "log" | "warn">;
}
export declare function createRuntimeObservability(deps: RuntimeObservabilityDeps): RuntimeObservability;