From b392b59c85a943323a0aeef30e9c7602cdd200e5 Mon Sep 17 00:00:00 2001 From: Jean <110341611+jean-michelet@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:08:04 +0200 Subject: [PATCH] refactor: rename UnderPressureOptions into FastifyUnderPressureOptions (#229) * refactor: depecrate UnderPressureOptions * refactor - no need for deprecation --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 2755824..b034703 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -20,10 +20,10 @@ interface FastifyUnderPressureExports { TYPE_EVENT_LOOP_UTILIZATION: 'eventLoopUtilization' } -type FastifyUnderPressure = FastifyPluginAsync & FastifyUnderPressureExports +type FastifyUnderPressure = FastifyPluginAsync & FastifyUnderPressureExports declare namespace fastifyUnderPressure { - export interface UnderPressureOptions { + export interface FastifyUnderPressureOptions { maxEventLoopDelay?: number; maxEventLoopUtilization?: number; maxHeapUsedBytes?: number;