I have had a look into the source and could not find any trace for the mentioned »className« property. Right now I am using rule.id. That is working somehow, but not included in the typings - so: (rule as any).id is what I am using. But that feels hackish and not to be the intended way.
Expected behavior: Refering to the docs, one should be able to use it like so:
but
rule.className
is undefined.I have had a look into the source and could not find any trace for the mentioned »className« property. Right now I am using
rule.id
. That is working somehow, but not included in the typings - so:(rule as any).id
is what I am using. But that feels hackish and not to be the intended way.So how is it intended to be used?
Versions: