You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not know if both functions and strings are supported. If they are, adding a type union (evaluate: Function | string) should work. If they're not supported, then replacing Function with string will solve this.
The text was updated successfully, but these errors were encountered:
When we pass custom "checks" into
axe-core
, they're expected to be strings, not functions. IncreateExecutionContext
, we explicitly support casting strings (viaeval
) to a function.However, the TypeScript definition suggests only functions are allowed.
I do not know if both functions and strings are supported. If they are, adding a type union (
evaluate: Function | string
) should work. If they're not supported, then replacingFunction
withstring
will solve this.The text was updated successfully, but these errors were encountered: