and then @require that in a function with the type specified then sassdoc errors.
Against a function called color with the following:
/// @require {variable} opacity
The error is:
[WARNING] Item color requires variable from type function but this item doesn't exist.
With:
/// @require {variable} $opacity-options
The error is:
TypeError: Cannot read property '1' of null
If you use the require without a type then it works:
/// @require $opacity-options
If I define a variable map like:
$opacity: ( 'light': .8, 'dark': .4 );
and then @require that in a function with the type specified then sassdoc errors.
Against a function called color with the following: /// @require {variable} opacity The error is: [WARNING] Item
color
requiresvariable
from typefunction
but this item doesn't exist.With: /// @require {variable} $opacity-options The error is: TypeError: Cannot read property '1' of null
If you use the require without a type then it works: /// @require $opacity-options