Designly
Aug 16, 2024

--

Well I did my own research and I found that this is a valid point. Declaring global types in .d.ts files causes tsc to skip checking that file. If you define only primitive types to properties it will work just fine but you define an unresolved or non-existent type to a property then it will be completely silent. See this video I made: https://youtu.be/6rdELd9iQbY

--

--

Designly
Designly

Written by Designly

Full-stack web developer and graphics designer.

Responses (2)