You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, I start using this plugin with TS support in my codebase, and I use a custom function for origin field for cors options. Which I found the sample for it in your test file here
But I got an error when using this kind of function signature, that TS told me about incompatible types for my function. When I look out on the d.ts file is supposed to be originCallback type
Hey guys, I start using this plugin with TS support in my codebase, and I use a custom function for origin field for cors options. Which I found the sample for it in your test file here
https://github.com/fastify/fastify-cors/blob/master/test/cors.test.js#L240.
But I got an error when using this kind of function signature, that TS told me about incompatible types for my function. When I look out on the d.ts file is supposed to be
originCallback
typehttps://github.com/fastify/fastify-cors/blob/master/index.d.ts#L7
I think that type is for the second parameter in the function right? And the definition should be
am I correct here, or the test is misguided me?
The text was updated successfully, but these errors were encountered: