# Missing return value in methods of CellArray and PolyData

**URL:** https://discourse.vtk.org/t/missing-return-value-in-methods-of-cellarray-and-polydata/13318
**Category:** Web
**Created:** [February 14, 2024, 5:53pm UTC](https://discourse.vtk.org/t/missing-return-value-in-methods-of-cellarray-and-polydata/13318 "2024-02-14T17:53:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Neral](https://discourse.vtk.org/user_avatar/discourse.vtk.org/neral/32/8468_2.png) [@Neral](https://discourse.vtk.org/u/Neral)
#### Post date: [February 14, 2024, 5:53pm UTC](https://discourse.vtk.org/t/missing-return-value-in-methods-of-cellarray-and-polydata/13318/1 "2024-02-14T17:53:20Z")

</div>

Hi,

In file [Common/Core/CellArray/index.d.ts](https://github.com/Kitware/vtk-js/blob/master/Sources/Common/Core/CellArray/index.d.ts)

```auto
	/**
	 * Returns the point indices at the given location as a subarray.
	 * @param loc
	 */
	getCell(loc: any): void;

```

The declared type of getCell is void instead of number.

The same way, in file [Common/DataModel/PolyData/index.d.ts](https://github.com/Kitware/vtk-js/blob/master/Sources/Common/DataModel/PolyData/index.d.ts)

```auto
	/**
	 * Get the neighbors at an edge.
	 * @param {Number} cellId The Id of the cell.
	 * @param {Vector3} point1 The first point coordinate.
	 * @param {Vector3} point2 The second point coordinate.
	 */
	getCellEdgeNeighbors(cellId: number, point1: Vector3, point2: Vector3): void;

```

The return type should be number instead of void.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [February 14, 2024, 5:58pm UTC](https://discourse.vtk.org/t/missing-return-value-in-methods-of-cellarray-and-polydata/13318/2 "2024-02-14T17:58:56Z")

</div>

Can you please create a PR to fix it ?

Thanks !
