Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Making use of an argument decorator. #6

@sudojunior

Description

@sudojunior

It would be interesting to see how an argument descriptor could be added to the project as a minor change.
Although, the signature may need to be changed to include the physical variable description, if a variable name cannot be determined in runtime.

This issue is intended for a first time contributor.

Example

// when making use of a decorator preprocessor or typescript
function add(
  @validate.arg(["number"]) a,
  @validate.arg(["number"]) b
) {
  return a + b;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestminorSemver minor release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions