Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TableHooks<T, Key>

Type parameters

  • T

  • Key

Hierarchy

  • TableHooks

Callable

  • __call(eventName: "creating", subscriber: function): void
  • __call(eventName: "reading", subscriber: function): void
  • __call(eventName: "updating", subscriber: function): void
  • __call(eventName: "deleting", subscriber: function): void
  • Parameters

    • eventName: "creating"
    • subscriber: function
        • (this: CreatingHookContext<T, Key>, primKey: Key, obj: T, transaction: Transaction): any
        • Parameters

          • this: CreatingHookContext<T, Key>
          • primKey: Key
          • obj: T
          • transaction: Transaction

          Returns any

    Returns void

  • Parameters

    • eventName: "reading"
    • subscriber: function
        • (obj: T): T | any
        • Parameters

          • obj: T

          Returns T | any

    Returns void

  • Parameters

    • eventName: "updating"
    • subscriber: function
        • (this: UpdatingHookContext<T, Key>, modifications: Object, primKey: Key, obj: T, transaction: Transaction): any
        • Parameters

          • this: UpdatingHookContext<T, Key>
          • modifications: Object
          • primKey: Key
          • obj: T
          • transaction: Transaction

          Returns any

    Returns void

  • Parameters

    • eventName: "deleting"
    • subscriber: function
        • (this: DeletingHookContext<T, Key>, primKey: Key, obj: T, transaction: Transaction): any
        • Parameters

          • this: DeletingHookContext<T, Key>
          • primKey: Key
          • obj: T
          • transaction: Transaction

          Returns any

    Returns void

Index

Properties

creating

creating: DexieEvent

deleting

deleting: DexieEvent

reading

reading: DexieEvent

updating

updating: DexieEvent

Generated using TypeDoc