Skip to content

Type {*} is replaced with {any} #228

@shadowspawn

Description

@shadowspawn

I am using {*} for the "any" type in my JSDoc which I think is the standard usage. This is used in examples on these pages:

prettier-plugin-jsdoc is replacing {*} with {any} which I have not seemed documented or used in examples for JSDoc, although presumably reasonable for TSDoc since a TypeScript type.

/**
- * @param {*} previous
+ * @param {any} previous
 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions