# typescript .d.ts updates needed

**URL:** https://discourse.vtk.org/t/typescript-d-ts-updates-needed/12395
**Category:** vtk.js
**Created:** [September 30, 2023, 9:08pm UTC](https://discourse.vtk.org/t/typescript-d-ts-updates-needed/12395 "2023-09-30T21:08:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JohnSkinner](https://discourse.vtk.org/user_avatar/discourse.vtk.org/johnskinner/32/6197_2.png) [@JohnSkinner](https://discourse.vtk.org/u/JohnSkinner)
#### Post date: [September 30, 2023, 9:08pm UTC](https://discourse.vtk.org/t/typescript-d-ts-updates-needed/12395/1 "2023-09-30T21:08:28Z")

</div>

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.
