Skip to main content

BuiltinComponentDeclared

Type Alias BuiltinComponentDeclared 

Source
pub type BuiltinComponentDeclared = fn(&str) -> bool;
Expand description

Resolves whether a built-in rule name is declared as a component, regardless of whether its host ships.

The sibling of BuiltinComponent that answers a different question. BuiltinComponent answers None for a name that is not a component and for one whose row names a host this build does not ship; this hook tells the two apart, so the resolver can refuse the broken row as a lanekeep bug rather than report a misspelling or serve a stale source.