vladaman
vladaman5mo ago

Issue with Fastify / tRPC / Angular

We are trying to setup Angular project with tRPC. In Angular we get following error:
Error: node_modules/fastify-plugin/plugin.d.ts:19:114 - error TS2344: Type 'Options' does not satisfy the constraint 'FastifyPluginOptions'.

19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~

node_modules/fastify-plugin/plugin.d.ts:19:28
19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~
This type parameter might need an `extends FastifyPluginOptions` constraint.
Error: node_modules/fastify-plugin/plugin.d.ts:19:114 - error TS2344: Type 'Options' does not satisfy the constraint 'FastifyPluginOptions'.

19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~

node_modules/fastify-plugin/plugin.d.ts:19:28
19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~
This type parameter might need an `extends FastifyPluginOptions` constraint.
0 Replies
No replies yetBe the first to reply to this messageJoin