Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Supersedes #1715
TypeScript 5.5 can:
myArr.filter(foo => !!foo).map(foo => foo.toString())
obj[key]
expressionsThe inferred type <...> cannot be named without a reference to <some-node_modules-path>
. Movingdeclaration: true
out of the roottsconfig.json
and into thetsconfig.build.json
files of the packages made the error go away.tsconfig.build.json
files, I createdtsconfig.build.base.json
(but I didn't move any of the options containing relative paths into it, likeoutDir
, to avoid any issues).TypeScript 5.6 can:
noUncheckedSideEffectImports
tsc
reported the CSS imports instorybook/.storybook/main.ts
as side effects imports.*.css
tosrc/types.d.ts
, which I also decided to move to the root of thestorybook
folder.log
from Three.js or Node (because of@types/node
) so that theconsole.log()
snippet becomes the first suggestion.TypeScript 5.7 can:
scaleGamma.ts
on a variable that is meant to represent thenever
type (i.e.undefined
at runtime). I couldn't find a fix that played nicely withd3-scale
's types, so I chose to turn off the error for now.ArrayBuffer
, which I had to work around inh5wasm-api.test.ts
. Also, typed arrays (Unit8Array
, etc.) now have a generic that defaults toArrayBufferLike
(ArrayBuffer | SharedArrayBuffer
), but this doesn't this to affect us.Note that TypeScript and Node are also making progress towards being able to run TS files without pre-compilation out of the box.