Thanks for the question. Could you build a codesandbox example, so we can see the complete example and then try to fix it from there?
Sure, here it is codesandbox.io/s/weathered-snowfla...
Looks like If disable strict mode in tsconfig.json it works fine.
Will try it out and provide some feedback.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.