From 3b776c462e54b2b238668aa593769498b3d87bda Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 15 Dec 2024 16:14:54 +0000 Subject: [PATCH] types: use `node:` prefix for builtins --- types/index.d.ts | 2 +- types/index.test-d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index c3fd134..16e634b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,6 +1,6 @@ /// -import { IncomingMessage } from 'http' +import { IncomingMessage } from 'node:http' type FastifyProxyAddr = typeof proxyaddr diff --git a/types/index.test-d.ts b/types/index.test-d.ts index ebdce35..d492029 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -1,5 +1,5 @@ import proxyaddr from '..' -import { createServer } from 'http' +import { createServer } from 'node:http' import { expectType } from 'tsd' createServer(req => {