Open
Description
A tweet points out there is no way to document a Map as parameter currently.
That might be an interesting new feature to add.
Consider the following:
/// Sowieso
/// @param {Map} $options [()] - some options
@mixn whatever($options: ()) { ... }
There's no way to properly document the options map properties.
Some possible solutions (just to illustrate the matter):
Introduce a new annotation
/// Sowieso
/// @options $options - some options
/// @prop {Number} one [1]- option one
/// @prop {String} two ['two'] - option two
@mixn whatever($options: ()) { ... }
Pro: straightforward
Con: How to deal with indentation, nesting
Reference a Map outside the caller
/// Sowieso
/// @type {Option Map}
/// @prop {Number} one [1]- option one
/// @prop {String} two ['two'] - option two
$options: ( one: 1, two: 'two' );
/// Sowieso
/// @options $options - some options
@mixn whatever($options: ()) { ... }
Pro:
Con: Weirdo, complex
EDIT: Was already reported in #111