In dynamic languages like JavaScript or PHP it is common practise to pass only one argument to the function. This argument is an object which encapsulate all options. What is the best way of documenting these options with ScriptDoc (or similar)?
Share
Using JSDoc it can be done as follows:
More information can be found in the Parameters with Properties section of JSDoc’s TagParam documentation.