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

chore: fix typescript halluzinations #4559

Merged

Conversation

geisterfurz007
Copy link
Contributor

Description

Fixes an alleged TypeScript halluzination by shuffling around code a bit. TypeScript requires a specific order for overloads; type declarations first, the implementing function body after.

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Chore (non-breaking change which does not add functionality)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

@AlessioGr AlessioGr merged commit c038acb into payloadcms:main Mar 10, 2024
29 checks passed
@AlessioGr
Copy link
Member

works perfectly, thank you!

AlessioGr pushed a commit that referenced this pull request Mar 10, 2024
@geisterfurz007 geisterfurz007 deleted the chore/fix-typescript-halluzinations branch March 10, 2024 09:15
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

2 participants