MCPcopy
hub / github.com/sparkjsdev/spark / constructor

Method constructor

src/dyno/base.ts:495–505  ·  view source on GitHub ↗
({
    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

Calls 1

valTypeFunction · 0.90

Tested by

no test coverage detected