Skip to content

Commit 7236ad0

Browse files
authored
Merge pull request #2568 from WesleyTheGeolien/vtkFieldData-ts
chore(vtkFieldData): update types
2 parents 0b1de78 + c4f46ba commit 7236ad0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/Common/DataModel/DataSetAttributes/FieldData.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { vtkObject } from "../../../interfaces" ;
22
import { Nullable } from "../../../types";
3-
import vtkDataArray from "../../Core/DataArray";
3+
import type vtkDataArray from "../../Core/DataArray";
44

55
/**
66
*
77
*/
88
export interface IFieldDataInitialValues {
9-
arrays?: Array<any>;
9+
arrays?: vtkDataArray[];
1010
copyFieldFlags?: Array<any>;
1111
doCopyAllOn?: boolean;
1212
doCopyAllOff?: boolean;
@@ -16,7 +16,7 @@ export interface IFieldDataInitialValues {
1616
*
1717
*/
1818
interface IArrayWithIndex {
19-
array: any,
19+
array: vtkDataArray,
2020
index: number;
2121
}
2222

@@ -75,13 +75,13 @@ export interface vtkFieldData extends vtkObject {
7575
/**
7676
* Get all arrays.
7777
*/
78-
getArrays(): any;
78+
getArrays(): vtkDataArray[];
7979

8080
/**
8181
*
82-
* @param {any} arraySpec
82+
* @param {number | string} arraySpec index or name of the array
8383
*/
84-
getArray(arraySpec: any): void;
84+
getArray(arraySpec: number | string): Nullable<vtkDataArray>;
8585

8686
/**
8787
* Get an array by its name.
@@ -99,7 +99,7 @@ export interface vtkFieldData extends vtkObject {
9999
* Get an array by its index.
100100
* @param {Number} idx The index of the array.
101101
*/
102-
getArrayByIndex(idx: number): Nullable<any>;
102+
getArrayByIndex(idx: number): Nullable<vtkDataArray>;
103103

104104
/**
105105
* Return true if there exists an array with the given arraName. False otherwise.

0 commit comments

Comments
 (0)