pure
    Preparing search index...

    Type Alias Persist<T>

    Persist: Cell<T> & { clear(): void; disable(): void; init(initial?: T): T }

    Type Parameters

    • T

    Type declaration

    • clear: function
    • disable: function
      • Clera the value and disable the persistence

        Returns void

    • init: function
      • Load the value initially, and notify all the current subscribers

        Optionally, you can pass an initial value to override the current value

        Parameters

        • Optionalinitial: T

        Returns T