Method
constructor
({
a,
outKey,
outTypeFunc,
}: { a: DynoVal<A>; outKey: OutKey; outTypeFunc: (aType: A) => OutType })
Source from the content-addressed store, hash-verified
| 493 | implements HasDynoOut<OutType> |
| 494 | { |
| 495 | constructor({ |
| 496 | a, |
| 497 | outKey, |
| 498 | outTypeFunc, |
| 499 | }: { a: DynoVal<A>; outKey: OutKey; outTypeFunc: (aType: A) => OutType }) { |
| 500 | const inTypes = { a: valType(a) }; |
| 501 | const outType = outTypeFunc(valType(a)); |
| 502 | const outTypes = { [outKey]: outType } as { [key in OutKey]: OutType }; |
| 503 | super({ inTypes, outTypes, inputs: { a } }); |
| 504 | this.outKey = outKey; |
| 505 | } |
| 506 | |
| 507 | outKey: OutKey; |
| 508 | dynoOut(): DynoValue<OutType> { |
Callers
nothing calls this directly
Tested by
no test coverage detected