Skip to content

Commit bbf9fce

Browse files
committed
types exported.
1 parent c50ced0 commit bbf9fce

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-execution-context",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Provides execution context wrapper for node JS, can be used to create execution wrapper for handling requests and more",
55
"author": "Oded Goldglas <odedglas@gmail.com>",
66
"license": "ISC",

src/hooks/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const destroy = (executionContextMap) => (asyncId)=> {
104104
* The Create hooks callback to be passed to "async_hooks"
105105
* @param {ExecutionContextMap} executionContextMap - The execution context map
106106
* @see https://nodejs.org/api/async_hooks.html#async_hooks_async_hooks_createhook_callbacks
107-
* @returns HookCallbacks
107+
* @returns {HookCallbacks}
108108
*/
109109
const create = (executionContextMap) => ({
110110
init: init(executionContextMap),

src/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,11 @@ interface ExecutionContextAPI {
8181
* Monitors the current execution map usage
8282
*/
8383
monitor(): ExecutionMapUsage;
84+
}
85+
86+
export {
87+
ExecutionContextMap,
88+
ExecutionContextAPI,
89+
ExecutionMapUsage,
90+
ExecutionMapUsageEntry
8491
}

0 commit comments

Comments
 (0)