Metakit / @doeixd/metakit/conformance
BundleOutcome
type · packages/metakit/src/conformanceVectors.ts:37
type BundleOutcome =
| {
readonly value: Scalar | null
}
| {
readonly refused: Node.Refusal['reason']
}
| {
readonly step: 'guard'
readonly refused?: Node.Refusal['reason']
}
| {
readonly step: 'refused'
readonly reason: Node.Refusal['reason'] | 'unwritable'
}
| {
readonly step: 'ok'
readonly writes: ReadonlyArray<Scalar | null>
readonly emitted: ReadonlyArray<EmittedRecord>
}
| {
readonly outsideProfile: string
}What a reader must answer for one call: an expression's value or the
reason it is refused; a step's guard not met (false or null, or
refused with the guard's refusal: a refused guard does not hold), its
refused evaluation of a write or an emit (or unwritable target), or ok
with each write's value and the records emitted; or outsideProfile, a call
the host refuses before running it.