@yesstudio/nuxt-composables
    Preparing search index...

    Interface Ref<T, S>

    interface Ref<T = any, S = T> {
        "[RefSymbol]": true;
        get value(): T;
        set value(_: S): void;
    }

    Type Parameters

    • T = any
    • S = T

    Hierarchy (View Summary)

    Index

    Properties

    Accessors

    Properties

    "[RefSymbol]": true

    Type differentiator only. We need this to be in public d.ts but don't want it to show up in IDE autocomplete, so we use a private Symbol instead.

    Accessors

    • get value(): T

      Returns T

    • set value(_: S): void

      Parameters

      Returns void