-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help Wanted: Enable strictNullChecks with TypeScript #8852
Comments
I'd like to get involved. |
Enabling From what i know, removing the errors would work by simply adding While that would already help, the interesting part would be removing Another thing is, that while rare, it may happen, that e.g. As mentioned, any step is imho a step in the right direction, and these can probably be done iteratively. I am curious though, what the intention is here. E.g. it would be within reach for me to do the first, but not the latter, as I still don't have a broad enough understanding of the pixi code-base. |
Removing unnecessary We'll have to feel out the scope of the breaking changes as we go to decide what we're wiling to tolerate for a minor or patch release. |
I'd like to contribute to this PR as well. |
Overview
We need some help if you're savvy in TypeScript! We would like to update our TypeScript implementation to enable
strictNullChecks
. Doing so would add a level of strictness to our code that everyone downstream would benefit from.Below are the list of files affected.
Running
Filter By Package
First, add the path of the package to the
pathPrefixs
array inscripts/filterTypeScriptErrors.ts
:pixijs/scripts/filterTypeScriptErrors.ts
Lines 12 to 14 in 38e2fc3
Then run the following command:
You will see errors filtered by the specified packages.
If a PR want to enable strictNullChecks in a package, the path of the package should be added to the array in that PR. For further information, you can read the comments in
scripts/filterTypeScriptErrors.ts
, or PR #8965.Files Affected
bundles/pixi.js-node/src/adapter/adapter.tsbundles/pixi.js-node/src/adapter/loadNodeBitmapFont.tsbundles/pixi.js-node/src/adapter/NodeCanvasElement.tsbundles/pixi.js-node/src/adapter/NodeCanvasResource.tsThe text was updated successfully, but these errors were encountered: