import fastify, { type FastifyPluginCallback } from 'fastify' import { expectType } from 'tsd' import fastifyUser, { type AddAuthStrategyDecorator, type CreateJWTSessionDecorator, type CreateSessionDecorator, type CreateWebhookSessionDecorator, type ExtractUserDecorator, type FastifyUserPluginOptions } from '../..' expectType>(fastifyUser) const app = fastify() app.register(fastifyUser) app.register(async (instance) => { expectType(instance.addAuthStrategy) instance.get('/', async (request) => { expectType(request.extractUser) expectType(request.createSession) expectType(request.createSession) expectType(request.createJWTSession) expectType(request.createWebhookSession) }) })