Skip to content

Add support for expressions in operation definition #33

Open
@dumconstantin

Description

@dumconstantin

Example:

const prodA: producer = ({
  a = observe.foo || observe.bar,
  b = observe.bam || 123,
  c = arg.b === 123,
  d = arg.c && arg.c + 10,
  e = arg.d > 100,
  f  = (observe.baz).keys(),
  g =  observe.a + observe.b,
  h = (observe.x).substr(10),
  i = shortId() // this is not intuitive - to postpone the execution until the producer executes
}) => {}

This allows providing default values and making simple operations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions