Skip to content

Commit

Permalink
types: use node: prefix for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 15, 2024
1 parent 5fe4109 commit bab6508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
RawServerBase,
RawServerDefault
} from 'fastify'
import { Stream } from 'stream'
import { BrotliOptions, ZlibOptions } from 'zlib'
import { Stream } from 'node:stream'
import { BrotliOptions, ZlibOptions } from 'node:zlib'

declare module 'fastify' {
export interface FastifyContextConfig {
Expand Down
4 changes: 2 additions & 2 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fastify, { FastifyInstance } from 'fastify'
import { createReadStream } from 'fs'
import { createReadStream } from 'node:fs'
import { expectError, expectType } from 'tsd'
import * as zlib from 'zlib'
import * as zlib from 'node:zlib'
import fastifyCompress, { FastifyCompressOptions } from '..'

const stream = createReadStream('./package.json')
Expand Down

0 comments on commit bab6508

Please sign in to comment.