Skip to content

Commit 97da410

Browse files
fchujosdejong
andauthored
fix: export Fraction type from the fraction.js library instead of using custom one (#3330)
Co-authored-by: Jos de Jong <[email protected]>
1 parent d8e4073 commit 97da410

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

types/index.d.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { Decimal } from 'decimal.js'
2+
import { Fraction } from 'fraction.js'
3+
4+
export { Fraction }
25

36
export as namespace math
47

@@ -4049,12 +4052,6 @@ export interface MatrixCtor {
40494052
// eslint-disable-next-line @typescript-eslint/no-empty-interface
40504053
export interface BigNumber extends Decimal {}
40514054

4052-
export interface Fraction {
4053-
s: bigint
4054-
n: bigint
4055-
d: bigint
4056-
}
4057-
40584055
export interface Complex {
40594056
re: number
40604057
im: number

0 commit comments

Comments
 (0)