Skip to content

Commit c725258

Browse files
martinjlowmark120202
authored andcommitted
fix(math): modf doesn't have second return value type (#10)
1 parent d5380d8 commit c725258

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/math.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ declare namespace math {
7777
/**
7878
* Returns the integral part of x and the fractional part of x. Its second
7979
* result is always a float.
80+
* @tupleReturn
8081
*/
81-
function modf(x: number): number;
82+
function modf(x: number): [number, number];
8283

8384
/**
8485
* The value of π.

0 commit comments

Comments
 (0)