Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): TypeScript import to prevent a future major release warning #1441

Merged
merged 1 commit into from
Oct 7, 2019
Merged

fix(docs): TypeScript import to prevent a future major release warning #1441

merged 1 commit into from
Oct 7, 2019

Conversation

vidavidorra
Copy link

Importing using import yargs from 'yargs'; prevents a warning log to console about the parsed property being dropped in a future major version.

In future major releases of yargs, "parsed" will be a private field. Use the return value of ".parse()" or ".argv" instead

Closes #1439

Importing using `import yargs from 'yargs';` prevents a warning log to console about the `parsed` property being dropped in a future major version.

In future major releases of yargs, "parsed" will be a private field. Use the return value of ".parse()" or ".argv" instead

Closes #1439
@bcoe bcoe changed the title docs: fix TypeScript import to prevent a future major release warning fix(docs): TypeScript import to prevent a future major release warning Oct 7, 2019
@bcoe bcoe merged commit b1b156a into yargs:master Oct 7, 2019
@bcoe
Copy link
Member

bcoe commented Oct 7, 2019

@vidavidorra thank you for the contribution 👍

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

Successfully merging this pull request may close these issues.

Warning about parsed in typescript
3 participants