typescript .d.ts updates needed

when using typescript with strict on, i see these issues that are due to .d.ts incompleteness.

Error: node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts:137:19 - error TS7006: Parameter ‘scalars’ implicitly has an ‘any’ type.

137 areScalarsOpaque(scalars, colorMode, componentIn): boolean;
~~~~~~~

Error: node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts:137:28 - error TS7006: Parameter ‘colorMode’ implicitly has an ‘any’ type.

137 areScalarsOpaque(scalars, colorMode, componentIn): boolean;
~~~~~~~~~

Error: node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts:137:39 - error TS7006: Parameter ‘componentIn’ implicitly has an ‘any’ type.

137 areScalarsOpaque(scalars, colorMode, componentIn): boolean;
~~~~~~~~~~~

When typescript strictness is off ( “strict”: false in tsconfig.json), the issue does not
appear.
These two are the only occurrences i see.

1 Like