flybywiresim / aircraft

The A32NX & A380X Project are community driven open source projects to create free Airbus aircraft in Microsoft Flight Simulator that are as close to reality as possible.
https://flybywiresim.com
GNU General Public License v3.0
4.93k stars 1.01k forks source link

chore: enable TS strict mode in FMGC, silence existing errors #8654

Closed Benjozork closed 1 month ago

Benjozork commented 1 month ago

Summary of Changes

This patch enables typescript strict mode, providing more useful type-checking and identifying what could be dozens of what could be actual bugs.

All existing errors are suppressed using a // @ts-expect-error comment - this allows the current code to compile without extra work, but prevents any new wrong code to be added. It also provides a clear opportunity for anyone working near the marked code to resolve the error.

Testing instructions

Does not require testing.

How to download the PR for QA

Every new commit to this PR will cause new A32NX and A380X artifacts to be created, built, and uploaded.

  1. Make sure you are signed in to GitHub
  2. Click on the Checks tab on the PR
  3. On the left side, find and click on the PR Build tab
  4. Click on either flybywire-aircraft-a320-neo or flybywire-aircraft-a380-842 download link at the bottom of the page