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

docs: getValue() replaced with node #16224

Merged
merged 1 commit into from Apr 30, 2024

Conversation

ssssota
Copy link
Contributor

@ssssota ssssota commented Apr 15, 2024

Description

getValue function is deprecated.

prettier/src/index.d.ts

Lines 110 to 113 in 1264a4c

/**
* @deprecated Please use `AstPath#node` or `AstPath#siblings`
*/
getValue(): T;

However, the plugin documentation still uses getValue function.

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@sosukesuzuki sosukesuzuki merged commit 923eec3 into prettier:main Apr 30, 2024
28 checks passed
@ssssota ssssota deleted the getvalue-deprecated branch April 30, 2024 13:08
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.

None yet

3 participants