-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
This works because in the v3 Fastify types, the FastifyInstance.log property is defined as a generic Logger that is defaulted to FastifyLoggerInstance (ref). Declaration merging the FastifyLoggerInstance type with interface FastifyLoggerInstance extends Logger {}, informs TypeScript to consider the type as an extension of the logger type defined in @types/pino.
By default, Fastify ships with a Pino instance as its logger; however, since Pino types are not maintained (yet) by the Pino project itself, Fastify does not ship type support for the complete Pino API. Understandably, this can be frustrating, but in this post I want to show you just how easy it is to add @types/pino to your Fastify app.