excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.82k stars 189 forks source link

fix: getTile return type should include null #3112

Closed Autsider666 closed 4 months ago

Autsider666 commented 4 months ago

I thought EX had checks in the pipeline to prevent these types of TS inconsistencies.

Autsider666 commented 4 months ago

What's the reasoning behind returning null instead of undefined by the way?

eonarheim commented 4 months ago

@Autsider666 There are various levels of strictness throughout the TS confgs unfortunately due to history, the desired end state is strict TS