Metakit / @doeixd/metakit/build

applyForeign

function · packages/metakit/src/ops/eval.ts:110

function applyForeign(
  op: Node.ForeignOp,
  args: ReadonlyArray<unknown>,
  implementations: Node.ForeignImplementations,
): unknown

A foreign call over argument values: refused where no implementation of its id and version is given (unsupported), where the one given throws (failed), and where it answers with a value not of the kind it declares, a number that is not finite, or a NUL.