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

Add TypeScript overload for .delete() to fix dot-notation typing #197

Merged

Conversation

gching
Copy link
Contributor

@gching gching commented Dec 6, 2024

Fixes / Adds back in original changes from #182

The implementation isn't recognized by TypeScript to be a possible signature for the method, only the overloads will be.

Changes

  • Adds in overload for dot notation
  • Adds in type test

@gching gching changed the title Add in signature for delete to do dot-notation Add in overload for delete to support dot-notation typing Dec 6, 2024
@gching gching changed the title Add in overload for delete to support dot-notation typing Add in overload for delete to fix dot-notation typing Dec 6, 2024
@sindresorhus sindresorhus merged commit 8fdcdd7 into sindresorhus:main Dec 7, 2024
2 checks passed
@sindresorhus sindresorhus changed the title Add in overload for delete to fix dot-notation typing Add TypeScript overload for .delete() to fix dot-notation typing Dec 7, 2024
@gching gching deleted the gching/fix-delete-dot-notation-typing branch December 8, 2024 08:20
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.

2 participants