Function pipe

  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T

    Parameters

    Returns NodeRef<T>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1

    Parameters

    Returns NodeRef<O1>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2

    Parameters

    Returns NodeRef<O2>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3

    Parameters

    Returns NodeRef<O3>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4

    Parameters

    Returns NodeRef<O4>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4
    • O5

    Parameters

    Returns NodeRef<O5>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4
    • O5
    • O6

    Parameters

    Returns NodeRef<O6>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4
    • O5
    • O6
    • O7

    Parameters

    Returns NodeRef<O7>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4
    • O5
    • O6
    • O7
    • O8

    Parameters

    Returns NodeRef<O8>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T
    • O1
    • O2
    • O3
    • O4
    • O5
    • O6
    • O7
    • O8
    • O9

    Parameters

    Returns NodeRef<O9>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1
  • Creates a new node that emits the values of the source node transformed through the specified operators.

    Type Parameters

    • T

    Parameters

    • source: NodeRef<T>
    • ...operators: O<unknown, unknown>[]

    Returns NodeRef<unknown>

    const signal$ = Signal<number>(true, (r) => {
    const signalPlusOne$ = r.pipe(signal$, map(i => i + 1))
    r.sub(signalPlusOne$, console.log)
    })
    const r = new Realm()
    r.pub(signal$, 1