Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

effectivePolicyForNode

ソース

APIの説明は英語のcanonical sourceを表示しています。

Convenience: compute the effective discovery policy for a node in the context of a full `NetworkGraph`. Walks the graph 's subgraphs once into a lookup map, then delegates to `computeEffectivePolicy`. The resolver, the scheduler, and the API "GET effective policy for this node" surface all need the same answer; they call this helper.

effectivePolicyForNode(graph: Pick<NetworkGraph, "subgraphs" | "attachments">, node: Pick<Node, "attachments" | "parent">): EffectiveDiscoveryPolicy

パラメーター

名前 説明 既定値
graph Pick<NetworkGraph, "subgraphs" | "attachments"> 追加説明はありません。
node Pick<Node, "attachments" | "parent"> 追加説明はありません。

戻り値

EffectiveDiscoveryPolicy

libs/@shumoku/core/src/observation/discovery-policy.ts:187