• Preparing search index...
  • The search index is not available
@amadeus-it-group/tansu
  • @amadeus-it-group/tansu
  • asReadable

Function asReadable

  • asReadable<T>(store): ReadableSignal<T>
  • Returns a wrapper (for the given store) which only exposes the ReadableSignal interface. This converts any StoreInput to a ReadableSignal and exposes the store as read-only.

    Type Parameters

    • T

    Parameters

    • store: StoreInput<T>

      store to wrap

    Returns ReadableSignal<T>

    A wrapper which only exposes the ReadableSignal interface.

    • Defined in index.ts:61
  • asReadable<T, U>(store, extraProp): ReadableSignal<T> & Omit<U, keyof Readable<T>>
  • Returns a wrapper (for the given store) which only exposes the ReadableSignal interface and also adds the given extra properties on the returned object.

    Type Parameters

    • T
    • U

    Parameters

    • store: StoreInput<T>

      store to wrap

    • extraProp: U

      extra properties to add on the returned object

    Returns ReadableSignal<T> & Omit<U, keyof Readable<T>>

    A wrapper which only exposes the ReadableSignal interface and the given extra properties.

    • Defined in index.ts:70

Settings

@amadeus-it-group/tansu
  • Loading...

Generated using TypeDoc