forked from open-telemetry/opentelemetry-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(amqplib): stop importing from
amqplib
directly in compiled types (
open-telemetry#1394) * fix(amqplib): make all instrumentation methods private Previously the `amqplib.d.ts` file would import `./utils` (resolved as `utils.d.ts`) which imports `amqplib` directly. This can cause typechecking issues for users who don't use `amqplib` but still import the `amqplib` instrumentation through the node autoinstrumentation. The `./utils` import was generated by typescript because some of the protected methods have their argument and return types defined in `utils.ts`. Now that these methods are private, typescript no longer needs to generate the type information for those methods and omits the `./utils` import. Signed-off-by: Boris Bera <bbera@coveo.com> * fix(amqplib): reduce the number of vendored types Signed-off-by: Boris Bera <bbera@coveo.com> --------- Signed-off-by: Boris Bera <bbera@coveo.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters