Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • SelectableSelect

Index

Methods

Methods

  • Select child element/member based on selector callback and wrap it in a Writable or Readable store depending on the source store.

    Type parameters

    • D

    Parameters

    • this: void
    • selector: (v: T) => D

      callback which takes a (proxy) to the store value and returns a child selected from it

        • (v: T): D
        • Parameters

          • v: T

          Returns D

    Returns Selectable<D, ReadOrWrite<D, S>, P>

  • Select child element/member based on the specified property and wrap it in a Writable or Readable store depending on the source store.

    Type parameters

    • D = unknown

    Parameters

    • this: void
    • property: P

      member/element to select from the store

    Returns Selectable<D, ReadOrWrite<D, S>, P>

  • Select child element/member based on the specified path and wrap it in a Writable or Readable store depending on the source store.

    Type parameters

    • D = unknown

    Parameters

    • this: void
    • path: P[]

      member/element to select from the store

    • Optional relative: number

      if provided, path is relative to the current path minus the specified number of segments otherwise it is absolute to the root store value

    Returns Selectable<D, ReadOrWrite<D, S>, P>

Generated using TypeDoc