Metakit / @doeixd/metakit/graph/match
affectedTags
function · packages/metakit/src/graph/match.ts:76
function affectedTags<Tag extends string>(
footprints: Readonly<
Record<
Tag,
{
readonly writes: ReadonlyArray<ReadonlyArray<string>>
}
>
>,
reads: Option.Option<ReadonlyArray<ReadonlyArray<string>>>,
): ReadonlyArray<Tag>Given a record of transition footprints { [Tag]: { writes } } and a
reader's reads (Option.none() when unknown), return the tags whose
writes can affect that reader, in declaration order.