Skip to content

Commit

Permalink
types: use node: prefix for builtins (#107)
Browse files Browse the repository at this point in the history
* types: use `node:` prefix for builtins

* test(types): add missing required params
  • Loading branch information
Fdawgs authored Dec 16, 2024
1 parent c746bbe commit e608b46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/plugin.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
FastifyPluginCallbackJsonSchemaToTs
} from '../index'

import { Http2Server } from 'http2'
import { Http2Server } from 'node:http2'

// Ensure the defaults of FastifyPluginAsyncJsonSchemaToTs are the same as FastifyPluginAsync
export const pluginAsyncDefaults: FastifyPluginAsync = async (
Expand Down Expand Up @@ -106,5 +106,5 @@ const callbackPlugin: FastifyPluginCallbackJsonSchemaToTs<

const fastify = Fastify()

fastify.register(asyncPlugin)
fastify.register(callbackPlugin)
fastify.register(asyncPlugin, { optionA: 'a' })
fastify.register(callbackPlugin, { optionA: 'a' })

0 comments on commit e608b46

Please sign in to comment.