sassdoc icon indicating copy to clipboard operation
sassdoc copied to clipboard

How to document a list of string as parameter

Open guoyunhe opened this issue 5 years ago • 1 comments
trafficstars

Should it be string[] or list(string) or anything else?

/// @param {string[]} $args - list of strings
@mixin join($args...) {
  // ...
}

guoyunhe avatar Mar 25 '20 10:03 guoyunhe

As far as I can remember, there is no way to type a list, so it would be @param {arglist} $args in your case.

KittyGiraudel avatar May 21 '20 08:05 KittyGiraudel