Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Incorrect handling of default values #12

Description

The plugin incorrectly identifies the arguments of the function if an argument is taking a default value with a comma.

For instance, for separator: string = ',' it ends up detecting single quote ' as an argument.

/**
 * @param  {string} csvHeader
 * @param  {object[]} objs
 * @param  {string='} separator
 * @param  {} '
 * @returns string
 */
export function jsonArrToCsv(csvHeader: string, objs: object[], separator: string = ','): string

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions