The imperative declaration seems to clutter the root config space and duplicate the delegates keyword on each one. It seems better to me that delegates (or whatever word is finally chosen) becomes the config key, with a value that is an object of the properties. This would allow the API to be expandable in the future if a non-boolean value is needed for some reason, but reduce overall repetition.
The imperative declaration seems to clutter the root config space and duplicate the
delegates
keyword on each one. It seems better to me thatdelegates
(or whatever word is finally chosen) becomes the config key, with a value that is an object of the properties. This would allow the API to be expandable in the future if a non-boolean value is needed for some reason, but reduce overall repetition.Depending on if we can get support for an all global API (Ref: https://github.com/leobalter/cross-root-aria-delegation/issues/3#issuecomment-1042085811), that could then just be
delegates: true
to enable that. So the value would either beBoolean | ConfigObject
.For example: