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

Function dynoBlock

src/dyno/base.ts:384–394  ·  view source on GitHub ↗
(
  inTypes: InTypes,
  outTypes: OutTypes,
  construct: DynoBlockType<InTypes, OutTypes>,
  { update, globals }: { update?: () => void; globals?: () => string[] } = {},
)

Source from the content-addressed store, hash-verified

382}
383
384export function dynoBlock<
385 InTypes extends Record<string, DynoType>,
386 OutTypes extends Record<string, DynoType>,
387>(
388 inTypes: InTypes,
389 outTypes: OutTypes,
390 construct: DynoBlockType<InTypes, OutTypes>,
391 { update, globals }: { update?: () => void; globals?: () => string[] } = {},
392) {
393 return new DynoBlock({ inTypes, outTypes, construct, update, globals });
394}
395
396export function dyno<
397 InTypes extends Record<string, DynoType>,

Callers 15

constructGeneratorMethod · 0.90
constructCovGeneratorMethod · 0.90
makeSorterMethod · 0.90
prepareGenerateMethod · 0.90
constructorMethod · 0.90
makeDynosMethod · 0.90
applyMethod · 0.90
makeDepthColorModifierFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected