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

Omitting a key does not does not work on the Config type #16235

Open
Quintisimo opened this issue Apr 26, 2024 · 0 comments
Open

Omitting a key does not does not work on the Config type #16235

Quintisimo opened this issue Apr 26, 2024 · 0 comments

Comments

@Quintisimo
Copy link

Environments:

  • Prettier Version: 3.2.5
  • Running Prettier via: Node API
  • Runtime: Node.js v20.12.2
  • Operating System: macOS
  • Prettier plugins (if any): n/a

Steps to reproduce:

  1. Import the Config type in a typescript file
  2. Type to omit the plugins property on the Config
Screenshot 2024-04-26 at 9 27 11 PM

Expected behaviour:
Returns the Config type without the plugins property

Actual behavior:
Returns { [x: string]: unknown; [x: number]: unknown; }

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

No branches or pull requests

1 participant