Despite my efforts to integrate preact with TypeScript, I have encountered a problem where incorrect types can be passed without any error being raised.
I am in the process of transitioning our codebase from plain JavaScript to preact with type scripting. While everything installs smoothly via NPM and the site itself runs fine, I noticed during a basic sanity test that inputs meant only for numeric values are accepting strings.
Even after cloning a git repository containing a supposed "working" example of preact + typescript, I found that in the simple "Hello World" demo, I could pass a string as an attribute despite it requiring only integers.
It has been about 3 hours of troubleshooting, and I feel like I'm stuck at a dead end. I may be missing some fundamental concept here.
With the most recent versions of preact, typescript, and babel installed, I considered turning off one tool at a time to identify the issue, but I was hoping someone else had faced a similar problem.