function / @typed/svelte/Attachment

attachment

Supplies the native DOM renderer and a scope while borrowing the runtime.

Package version
1.0.0-beta.13
Category
function

Import

import { attachment } from "@typed/svelte/Attachment";

Signatures

export declare function attachment<const V extends Renderable.Any, ER = never>(runtime: Pick<Runtime<Exclude<Exclude<Renderable.Services<V>, RenderTemplate>, Scope.Scope>, ER>, "runFork">, value: V, options?: AttachmentOptions<Renderable.Error<V> | ER>): (element: HTMLElement) => () => void;

Source