Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Improve args typings #58

Open
shaharmor opened this issue Aug 18, 2019 · 0 comments
Open

Improve args typings #58

shaharmor opened this issue Aug 18, 2019 · 0 comments

Comments

@shaharmor
Copy link

Hi,

When using const { args } = this.parse(Command), the type of args is any.

This makes it harder to maintain stability when passing those args around.

Is it possible to make it inherit the values from the property itself?

So if I have:

static args = [
  {
    name: 'someArg',
  }
];

The type of const { args } = this.parse(Command) will be { someArg: string }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant