본문으로 건너뛰기

Ref

Ref Function + Object type that can use use: directive in svelte

type Ref<T>= ((value: T) => {
destroy(): void
}) & {
current?: T
}