Skip to content
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

TypeScript strict null checks #6606

Open
enisdenjo opened this issue Feb 27, 2024 · 0 comments
Open

TypeScript strict null checks #6606

enisdenjo opened this issue Feb 27, 2024 · 0 comments

Comments

@enisdenjo
Copy link
Collaborator

enisdenjo commented Feb 27, 2024

strictNullChecks are disabled by default. Meaning, we didn't have checks like "object is possible undefined" which are of outmost importance.

Mesh has many misuses where cases like these are passing:

function accessProp(obj: { prop: string } | undefined) {
  obj.prop; // ✅
}

or

type Obj = { prop: string };
const obj: Obj = { prop: undefined }; // ✅ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant