Method
constructor
({
a,
b,
outKey,
outTypeFunc,
}: {
a: DynoVal<A>;
b: DynoVal<B>;
outKey: OutKey;
outTypeFunc: (aType: A, bType: B) => OutType;
})
Source from the content-addressed store, hash-verified
| 520 | implements HasDynoOut<OutType> |
| 521 | { |
| 522 | constructor({ |
| 523 | a, |
| 524 | b, |
| 525 | outKey, |
| 526 | outTypeFunc, |
| 527 | }: { |
| 528 | a: DynoVal<A>; |
| 529 | b: DynoVal<B>; |
| 530 | outKey: OutKey; |
| 531 | outTypeFunc: (aType: A, bType: B) => OutType; |
| 532 | }) { |
| 533 | const inTypes = { a: valType(a), b: valType(b) }; |
| 534 | const outType = outTypeFunc(valType(a), valType(b)); |
| 535 | const outTypes = { [outKey]: outType } as { [key in OutKey]: OutType }; |
| 536 | super({ inTypes, outTypes, inputs: { a, b } }); |
| 537 | this.outKey = outKey; |
| 538 | } |
| 539 | |
| 540 | outKey: OutKey; |
| 541 | dynoOut(): DynoValue<OutType> { |
Callers
nothing calls this directly
Tested by
no test coverage detected