From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 PAMapp/node_modules/@types/node/diagnostics_channel.d.ts |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/PAMapp/node_modules/@types/node/diagnostics_channel.d.ts b/PAMapp/node_modules/@types/node/diagnostics_channel.d.ts
index d6747da..dce50e3 100755
--- a/PAMapp/node_modules/@types/node/diagnostics_channel.d.ts
+++ b/PAMapp/node_modules/@types/node/diagnostics_channel.d.ts
@@ -20,7 +20,7 @@
  * should generally include the module name to avoid collisions with data from
  * other modules.
  * @experimental
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/diagnostics_channel.js)
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/diagnostics_channel.js)
  */
 declare module 'diagnostics_channel' {
     /**
@@ -57,7 +57,7 @@
      * @return The named channel object
      */
     function channel(name: string): Channel;
-    type ChannelListener = (name: string, message: unknown) => void;
+    type ChannelListener = (message: unknown, name: string) => void;
     /**
      * The class `Channel` represents an individual named channel within the data
      * pipeline. It is use to track subscribers and to publish messages when there
@@ -90,6 +90,24 @@
         readonly hasSubscribers: boolean;
         private constructor(name: string);
         /**
+         * Publish a message to any subscribers to the channel. This will
+         * trigger message handlers synchronously so they will execute within
+         * the same context.
+         *
+         * ```js
+         * import diagnostics_channel from 'diagnostics_channel';
+         *
+         * const channel = diagnostics_channel.channel('my-channel');
+         *
+         * channel.publish({
+         *   some: 'message'
+         * });
+         * ```
+         * @since v15.1.0, v14.17.0
+         * @param message The message to send to the channel subscribers
+         */
+        publish(message: unknown): void;
+        /**
          * Register a message handler to subscribe to this channel. This message handler
          * will be run synchronously whenever a message is published to the channel. Any
          * errors thrown in the message handler will trigger an `'uncaughtException'`.

--
Gitblit v1.8.0