This allows users to supply functions that add additional shortcuts for resources. This might come in handy for resources that could otherwise only be accessed by using api[...].
For example have a look at the test case. This rule adds shortcuts for resources like long-string-with-dashes in the form of their camel-case counterpart longStringWithDashes making this resource accessible via api.longStringWithDashes.
This allows users to supply functions that add additional shortcuts for resources. This might come in handy for resources that could otherwise only be accessed by using
api[...]
. For example have a look at the test case. This rule adds shortcuts for resources likelong-string-with-dashes
in the form of their camel-case counterpartlongStringWithDashes
making this resource accessible viaapi.longStringWithDashes
.