Description

An interface used in initialize.

Type Parameters

  • Message extends MessagePrototype

Hierarchy

  • MessageCollectionInitHandler

Constructors

Methods

Constructors

Methods

  • Parameters

    • handler: ((err, messages) => void)
        • (err, messages): void
        • Parameters

          • err: null | Error
          • messages: null | Message[]

          Returns void

    Returns MessageCollectionInitHandler<Message>

    Description

    This will give message lists loaded from the api. Once the results are received, you should handle the data in view according to the MessageCollectionInitPolicy.

  • Parameters

    • handler: ((err, messages) => void)
        • (err, messages): void
        • Parameters

          • err: null | Error
          • messages: null | Message[]

          Returns void

    Returns MessageCollectionInitHandler<Message>

    Description

    This will give message lists loaded from the database. If the database is empty, this will give an empty list.

Generated using TypeDoc