Skip to content

jsii: it is possible to define a method/ctor with non-optional after an optional #301

@eladb

Description

@eladb

Probably a typescript bug, but it is now possible to define something like this:

function foo(arg1 = 'hello', arg2: string) {
}

This means that arg1 is optional and arg2 is required, which doesn't work.

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