Metakit / @doeixd/metakit/build

Settled

const · packages/metakit/src/ops/judge.ts:352

const Settled: Data.TaggedEnum.Constructor<
  | {
      readonly _tag: 'Open'
      readonly reads: Reads
      readonly verdict: Verdict.Verdict<never>
    }
  | { readonly _tag: 'Known'; readonly value: unknown }
>

Its type

type Settled = Data.TaggedEnum<{
  Known: {
    readonly value: unknown
  }
  Open: {
    readonly reads: Reads
    readonly verdict: Verdict.Verdict<never>
  }
}>

What a partly known environment settles a node to: its value (null or a Node.Refusal among them), or, where it rests on what the environment lacks, why it is open and what the rest of it reads.