Method
constructor
({
a,
b,
c,
outKey,
outTypeFunc,
}: {
a: DynoVal<A>;
b: DynoVal<B>;
c: DynoVal<C>;
outKey: OutKey;
outTypeFunc: (aType: A, bType: B, cType: C) => OutType;
})
Source from the content-addressed store, hash-verified
| 554 | implements HasDynoOut<OutType> |
| 555 | { |
| 556 | constructor({ |
| 557 | a, |
| 558 | b, |
| 559 | c, |
| 560 | outKey, |
| 561 | outTypeFunc, |
| 562 | }: { |
| 563 | a: DynoVal<A>; |
| 564 | b: DynoVal<B>; |
| 565 | c: DynoVal<C>; |
| 566 | outKey: OutKey; |
| 567 | outTypeFunc: (aType: A, bType: B, cType: C) => OutType; |
| 568 | }) { |
| 569 | const inTypes = { a: valType(a), b: valType(b), c: valType(c) }; |
| 570 | const outType = outTypeFunc(valType(a), valType(b), valType(c)); |
| 571 | const outTypes = { [outKey]: outType } as { [key in OutKey]: OutType }; |
| 572 | super({ inTypes, outTypes, inputs: { a, b, c } }); |
| 573 | this.outKey = outKey; |
| 574 | } |
| 575 | |
| 576 | outKey: OutKey; |
| 577 | dynoOut(): DynoValue<OutType> { |
Callers
nothing calls this directly
Tested by
no test coverage detected