# vtkRenderer.setPreserveColorBuffer typo in either the .d.ts or the .js, same with setPreserveDepthBuffer

**URL:** https://discourse.vtk.org/t/vtkrenderer-setpreservecolorbuffer-typo-in-either-the-d-ts-or-the-js-same-with-setpreservedepthbuffer/13303
**Category:** vtk.js
**Created:** [February 12, 2024, 1:31pm UTC](https://discourse.vtk.org/t/vtkrenderer-setpreservecolorbuffer-typo-in-either-the-d-ts-or-the-js-same-with-setpreservedepthbuffer/13303 "2024-02-12T13:31:03Z")
**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: [February 12, 2024, 1:31pm UTC](https://discourse.vtk.org/t/vtkrenderer-setpreservecolorbuffer-typo-in-either-the-d-ts-or-the-js-same-with-setpreservedepthbuffer/13303/1 "2024-02-12T13:31:03Z")

</div>

The typescript declaration file for vtkRenderer (the .d.ts) declares setPreserveColorBuffer // with big ‘B’, but the  
javascript definition uses setPreserveColorbuffer // with little ‘b’. So for now I @ts-ignore to work around the issue.  
The same goes with setPreserveDepthBuffer.
