Converts a method with given signature and callback to a Promise returning method.
A special case is the use of setTimeout, where the order of arguments is swapped.
a function object to be invoked
Rest...args: any[]args of the function. The function has one additional callback parameter
the Promise, will be fulfilled if the callback is invoked
The boot loader of the Katex Input Helper. It serves as entry point of the application.