We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb38292 commit a15b1afCopy full SHA for a15b1af
packages/serverless/src/utils.ts
@@ -29,7 +29,7 @@ export function getActiveDomain(): domain.Domain | null {
29
* @param fn function to run
30
* @returns function which runs in the newly created domain or in the existing one
31
*/
32
-export function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R {
+export function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R | void {
33
return (...args) => {
34
if (getActiveDomain()) {
35
return fn(...args);
0 commit comments