Skip to content

optocouplerBinding

optocouplerBinding(device): "declared" | "named" | "declaration-order"

Defined in: packages/compiler/src/lower.ts:1955

Which rung decided an optocoupler’s wiring, so a warning can name the devices that reached the weaker ones without restating either test.

The alternative — a predicate in the warning module that mirrors this vocabulary — is how a silent switch mis-wiring was introduced in this compiler once already: the mirror drifted from the resolver and the warning went quiet about the case it existed for.

Device

"declared" | "named" | "declaration-order"