Skip to content

Commit 2f0e204

Browse files
committed
Correct the param type
1 parent 2d9b130 commit 2f0e204

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

types/parameter.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,15 @@ declare module 'rclnodejs' {
265265
/**
266266
* Create a new instance.
267267
* @constructor
268-
* @param {bigint} fromValue - The lowest inclusive value in range
269-
* @param {bigint} toValue - The highest inclusive value in range
270-
* @param {bigint} step - The internal unit size.
268+
* @param {bigint|number} fromValue - The lowest inclusive value in range
269+
* @param {bigint|number} toValue - The highest inclusive value in range
270+
* @param {bigint|number} step - The internal unit size.
271271
*/
272-
constructor(from: bigint, to: bigint, step?: bigint);
272+
constructor(
273+
from: bigint | number,
274+
to: bigint | number,
275+
step?: bigint | number
276+
);
273277

274278
/**
275279
* Determine if a ParameterType is compatible.

0 commit comments

Comments
 (0)