Skip to content

Commit deff338

Browse files
committed
fix: allow array-like objects
1 parent 8060caf commit deff338

File tree

1 file changed

+6
-2
lines changed
  • lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/docs/types

1 file changed

+6
-2
lines changed

lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/docs/types/index.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@
1818

1919
// TypeScript Version: 4.1
2020

21+
/// <reference types="@stdlib/types"/>
22+
23+
import { Collection } from '@stdlib/types/array';
24+
2125
/**
2226
* Interface describing function options.
2327
*/
2428
interface Options {
2529
/**
2630
* Input value floating-point data type (e.g., `double` or `float`). Default: `'double'`.
2731
*/
28-
dtype?: string;
32+
dtype?: 'double' | 'float';
2933

3034
/**
3135
* Function name. Default: `'evalpoly'`.
@@ -48,7 +52,7 @@ interface Options {
4852
* var str = compile( P, Q );
4953
* // returns <string>
5054
*/
51-
declare function compile( P: Array<number>, Q: Array<number>, options?: Options ): string;
55+
declare function compile( P: Collection<number>, Q: Collection<number>, options?: Options ): string;
5256

5357

5458
// EXPORTS //

0 commit comments

Comments
 (0)