Skip to content

Operation on messages in rx-js-chat #58

Open
@asker2410

Description

@asker2410
this.messages = this.updates
      // watch the updates and accumulate operations on the messages
      .scan((messages: Message[],
             operation: IMessagesOperation) => {
               return operation(messages);
             },

In above code snippet, what operation exactly is ? - "return operation(messages);". I don't see "operation" defined anywhere except there is an interface. I am looking for concrete method.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions