payload icon indicating copy to clipboard operation
payload copied to clipboard

chore: fix typescript halluzinations

Open mvarendorff opened this issue 1 year ago • 0 comments

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.

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

Type of change

  • [x] 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
  • [x] Existing test suite passes locally with my changes
  • [ ] I have made corresponding changes to the documentation

mvarendorff avatar Dec 19 '23 17:12 mvarendorff