Types Migration
antoniomuso opened this issue · comments
The current types do the overloading of Fastify default types, this creates the problem that we found the plugin types also in data type not reached from the plugin.
fastify.get<ReqReplyMetrics, MetricsConfig>(
'/',
{ config: { metrics: { metricId: '' } } },
(request, reply) => {}
);
For this reason, we can evaluate the migration to generics typing, in this way, it is the user's responsibility to type his data.