Closed theolpmodesto closed 1 year ago
It has 2 optional args and the first one that is mandatory: https://github.com/fastify/secure-json-parse#sjsonparsetext-reviver-options
Here is the method overload:
https://github.com/fastify/secure-json-parse/blob/master/types/index.d.ts#L56
Could you add a Minimal, Reproducible Example?
Without it, we are unable to help you.
I noticed that the function secureJson.parse has 3 parameters, but it only utilizes 2. After updating from Fastify 3v to v4, I encountered some errors.