FuncType - v0.20.0
    Preparing search index...

    Type Alias RefType

    RefType: <A extends unknown>(initial: A) => RefType<A> & {
        of: <A extends unknown>(initial: A) => RefType<A>;
    }

    Type Declaration

      • <A extends unknown>(initial: A): RefType<A>
      • Creates a new mutable reference containing the given value

        Type Parameters

        • A extends unknown

        Parameters

        • initial: A

        Returns RefType<A>

    • of: <A extends unknown>(initial: A) => RefType<A>

      Creates a Ref. Alias for Ref constructor.