Metakit / @doeixd/metakit/artifact
BundleNode
const · packages/metakit/src/bundle.ts:63
const BundleNode: Schema.Union<
readonly [
Schema.TaggedStruct<
'Lit',
{
readonly value: Schema.Codec<
PortableLiteral,
PortableLiteral,
never,
never
>
}
>,
Schema.TaggedStruct<
'Path',
{
readonly segments: Schema.$Array<Schema.String>
readonly read: Schema.Codec<
PortableLiteral,
PortableLiteral,
never,
never
>
}
>,
Schema.TaggedStruct<
'Call',
{ readonly op: Schema.String; readonly args: Schema.$Array<Schema.Int> }
>,
Schema.TaggedStruct<
'If',
{
readonly cond: Schema.Int
readonly then: Schema.Int
readonly otherwise: Schema.Int
}
>,
Schema.TaggedStruct<
'Match',
{
readonly on: Schema.Int
readonly cases: Schema.$Array<
Schema.Tuple<readonly [Schema.String, Schema.Int]>
>
readonly otherwise: Schema.optionalKey<Schema.Int>
}
>,
]
>Its type
type BundleNode = typeof BundleNode.TypeOne entry of a bundle's node table. A child is the index of an earlier
entry. A Path holds the interface of the Schema it was built with
(schemaInterface), which the definition hash covers.