Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

metricsBindingOf

Source

The metrics-binding attachment on an element, if any. When `activeSourceIds` is given, only a binding whose `sourceId` is active counts — so a binding left behind by a detached/removed metrics source stops driving the mapping.

metricsBindingOf(attachments: { kind: string }[] | undefined, activeSourceIds?: ReadonlySet<string>): MetricsBindingAttachment | undefined

Parameters

Parameter Type Description Default
attachments { kind: string }[] | undefined No additional description.
activeSourceIds ReadonlySet<string> No additional description.

Returns

MetricsBindingAttachment | undefined

libs/@shumoku/core/src/observation/metrics-binding.ts:26