Open lucaskbr opened 1 year ago
I would like to use the type FastifyZodInstance without having to re-create the type again in my app
example:
import { FastifyZodInstance } from 'fastify-type-provider-zod' export const buildMyRoute = ( fastify: FastifyZodInstance, ) => fastify .get(resource, {
A good improvement would be to directly export the type from the lib, since is already created in theindex.test-d.ts file
index.test-d.ts
I've tried to open a pr but is blocked The requested URL returned error: 403
The requested URL returned error: 403
In src/index.ts
import type { FastifyInstance, FastifyBaseLogger, FastifySchema, FastifySchemaCompiler, FastifyTypeProvider, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerDefault, } from 'fastify'; export type FastifyZodInstance = FastifyInstance< RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, FastifyBaseLogger, ZodTypeProvider >;
In types/index.test-d.ts
import type { FastifyZodInstance, ZodTypeProvider } from '../src/index';
any progress on this issue? or any other way to resolve it?
I would like to use the type FastifyZodInstance without having to re-create the type again in my app
example:
A good improvement would be to directly export the type from the lib, since is already created in the
index.test-d.ts
fileI've tried to open a pr but is blocked
The requested URL returned error: 403
In src/index.ts
In types/index.test-d.ts
import type { FastifyZodInstance, ZodTypeProvider } from '../src/index';