From 7784d0553e4bf622ceb1e615d3566a3a1f7218c5 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 21 May 2024 17:50:34 +0200 Subject: [PATCH] fixup Signed-off-by: Matteo Collina --- index.d.ts | 1 + index.test-d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 1d1a37d..e9b90c9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -9,6 +9,7 @@ import { declare module "fastify" { interface FastifyInstance { runInAsyncScope (fn: () => T) : T; + enterWith() : void } } diff --git a/index.test-d.ts b/index.test-d.ts index ac21819..3fc3806 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -13,6 +13,7 @@ import fastify, { const fastifyInstance = fastify(); expectAssignable(fastifyInstance.register(fastifyasyncforge)); expectAssignable(fastifyasyncforge); +expectType(fastifyInstance.enterWith()); expectType(fastifyInstance.runInAsyncScope(() => 42)); // app