Skip to content

Support for JSDoc style comments  #463

@degrootsam

Description

@degrootsam

Having JSDoc styled comments in the component set crashes the compiler. Here is an example

/**
 * Prints a greeting message with the given name.
 * If no name is provided, it defaults to 'world'.
 *
 * @param {string} [name] - The name to greet.
 * @returns {void}
 */
const helloWorld = (name = 'world') => {
    console.log(`Hello ${name}!`);
}

The example above causes the following error message:

TypeError in customFilterComponent.js: Cannot read properties of undefined (reading 'reduce')

This feature can help a lot of developers get started faster when customizing the already existing component set library. It can also help developers when collaborating on a custom component ^^.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions