Skip to content

Support default value in decorators #1897

@timotheeguerin

Description

@timotheeguerin
extern dec encode(target: unknown, encoding: string, encodedAs?: string | bytes  = string);

Would be good to be able to do that.

To decide in design is do we want the property with default to be marked optional or not

extern dec encode(target: unknown, encoding: string, encodedAs?: string | bytes  = string);
// vs
extern dec encode(target: unknown, encoding: string, encodedAs: string | bytes  = string);

In typescript they have to be marked required
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:neededA design request has been raised that needs a proposal

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions