From 0dd4a567d32af07b51544a67165e0b146c4d13ea Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 15 Dec 2024 16:24:48 +0000 Subject: [PATCH] types: use `node:` prefix for builtins (#490) --- types/index.d.ts | 2 +- types/index.test-d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index e1d38f0..4fddd48 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,7 +3,7 @@ /// import { FastifyPluginAsync, FastifyReply, FastifyRequest, RouteOptions } from 'fastify' -import { Stats } from 'fs' +import { Stats } from 'node:fs' declare module 'fastify' { interface FastifyReply { diff --git a/types/index.test-d.ts b/types/index.test-d.ts index 1812001..b91705d 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -1,6 +1,6 @@ import fastify, { FastifyInstance, FastifyPluginAsync, FastifyRequest, FastifyReply } from 'fastify' -import { Server } from 'http' -import { Stats } from 'fs' +import { Server } from 'node:http' +import { Stats } from 'node:fs' import { expectAssignable, expectError, expectType } from 'tsd' import * as fastifyStaticStar from '..' import fastifyStatic, {