Type alias ChangeFn<T>

ChangeFn<T>: ((doc: T) => void)

Type Parameters

  • T

    The type of value contained in the document

    This function may mutate doc

Type declaration

    • (doc: T): void
    • Function which is called by change when making changes to a Doc<T>

      Parameters

      • doc: T

      Returns void

Generated using TypeDoc