]> git.ardis.lu - csvio/commit
Refactor to simplify for language server
authorArdis Lu <ardisglu@gmail.com>
Sun, 27 Apr 2025 08:30:01 +0000 (01:30 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 27 Apr 2025 08:30:01 +0000 (01:30 -0700)
commitaa98a71371d6080a9c9d6691e47d2dd60d47c2ad
tree78a9f09fe16a61cbe01cab22faa0a5f409aa50ec
parent48eca0cbaa5d409892d4e308a58260253c426368
Refactor to simplify for language server

The TypeScript language server is not yet capable of understanding that the nullish coalescing assignment will make the property non-null, so it will show a type error. Another workaround would be to assert the property is non-null using a JSDoc equivalent to TypeScript's `!` but that is also not yet supported by JSDoc.
src/errorStrategies.js
This page took 0.042085 seconds and 4 git commands to generate.