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, {