Type Parameters

  • M extends object = object

  • E extends string = never

Hierarchy

Implements

Constructors

Properties

$$isEmitter: true
index: Map<string, M> = ...
isBatching: boolean = false
itemKey: string

key to item.

items: Set<M> = ...
noEmit: boolean

set it True, the follow emit will be ignore and then set it False.

size: number = 0

Methods

  • Parameters

    • predicate: ((item: M) => boolean)
        • (item: M): boolean
        • Parameters

          • item: M

          Returns boolean

    Returns boolean

  • Parameters

    • pairs: string | Record<string, any>
    • Optional value: any
    • Optional context: object

    Returns void

  • Parameters

    • Optional predicate: ((item: M) => boolean)
        • (item: M): boolean
        • Parameters

          • item: M

          Returns boolean

    Returns M

  • Parameters

    • predicate: ((item: M) => boolean)
        • (item: M): boolean
        • Parameters

          • item: M

          Returns boolean

    Returns M[]

  • 将对象从数据集移除,并将其标记为 Deleted,将在下次提交时远程删除

    Warn! 当不传 item 的时候,表示移除全部元素

    Parameters

    • Optional item: M

    Returns void

Generated using TypeDoc