typeorm icon indicating copy to clipboard operation
typeorm copied to clipboard

fix: export QueryEvent before/after types

Open nover opened this issue 1 year ago • 0 comments

Description of change

This PR exports the types added in PR #10234 - QueryEvent (AfterQueryEvent, BeforeQueryEvent) so that one can build subscribers that use the before.. and afterQuery listeners.

Also the JS doc for the AfterQueryEvent is updated to clarify that execution time is in milliseconds to remove guess-work.

Pull-Request Checklist

  • [x] Code is up-to-date with the master branch
  • [x] npm run format to apply prettier formatting (this changed other unrelated files which have not been committed)
  • [x] npm run test passes with this change
  • [ ] This pull request links relevant issues as Fixes #0000
  • [ ] There are new or updated unit tests validating the change
  • [x] Documentation has been updated to reflect this change
  • [x] The new commits follow conventions explained in CONTRIBUTING.md

nover avatar Feb 07 '24 18:02 nover