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

Making use of an argument decorator. #6

Open
sudojunior opened this issue Feb 1, 2021 · 0 comments
Open

Making use of an argument decorator. #6

sudojunior opened this issue Feb 1, 2021 · 0 comments
Labels
enhancement New feature or request minor Semver minor release

Comments

@sudojunior
Copy link
Member

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;
}
@sudojunior sudojunior added enhancement New feature or request good first issue Good for newcomers minor Semver minor release and removed good first issue Good for newcomers labels Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request minor Semver minor release
Projects
None yet
Development

No branches or pull requests

1 participant