Skip to content

Interpolation within param declaration #492

@boriskaiser

Description

@boriskaiser

Hi guys,

I have a problem with the parameter declaration, which use SASS interpolation.
Here is a simple example:

/// Test variable interpolation
/// @param {String} $foo ['foo'] - Foo value
/// @param {String} $foobar ['#{$foo}bar'] - Foo and bar value
@mixin test(
  $foo: 'foo',
  $foobar: '#{$foo}bar'
) {
  body {
    content: $foobar
  }
}

The result of SassDoc looks like this:

image

I noticed, if I remove the {String} type, everything works correctly, see here:

image

Is there a workaround, how to declare the type with interpolation or is it a bug?

PS
I use SassDoc 2.2.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions