Skip to content

[Question] Allow optional properties in typedefs #1407

@3stacks

Description

@3stacks

Hey there,

Are there currently any plans in this project to support optional properties? e.g.

/**
 * @typedef {Object} Something
 * @property {string} someProperty - required
 * @property {string} [anotherProperty] - optional
 */

Had a search through the issues and couldn't find this specifically, so apologies if it's a repeat.

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