From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:48:15 +0800 Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改 --- PAMapp/node_modules/@types/node/async_hooks.d.ts | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PAMapp/node_modules/@types/node/async_hooks.d.ts b/PAMapp/node_modules/@types/node/async_hooks.d.ts index 35b9be2..5930de4 100755 --- a/PAMapp/node_modules/@types/node/async_hooks.d.ts +++ b/PAMapp/node_modules/@types/node/async_hooks.d.ts @@ -6,7 +6,7 @@ * import async_hooks from 'async_hooks'; * ``` * @experimental - * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js) + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/async_hooks.js) */ declare module 'async_hooks' { /** @@ -258,7 +258,7 @@ * @param type The type of async event. * @param triggerAsyncId The ID of the execution context that created * this async event (default: `executionAsyncId()`), or an - * AsyncResourceOptions object (since 9.3) + * AsyncResourceOptions object (since v9.3.0) */ constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); /** @@ -395,8 +395,9 @@ getStore(): T | undefined; /** * Runs a function synchronously within a context and returns its - * return value. The store is not accessible outside of the callback function or - * the asynchronous operations created within the callback. + * return value. The store is not accessible outside of the callback function. + * The store is accessible to any asynchronous operations created within the + * callback. * * The optional `args` are passed to the callback function. * @@ -410,6 +411,9 @@ * try { * asyncLocalStorage.run(store, () => { * asyncLocalStorage.getStore(); // Returns the store object + * setTimeout(() => { + * asyncLocalStorage.getStore(); // Returns the store object + * }, 200); * throw new Error(); * }); * } catch (e) { -- Gitblit v1.8.0