From 97da410d303d850129d7e03435bd43bec05565af Mon Sep 17 00:00:00 2001 From: Francois <819179+fchu@users.noreply.github.com> Date: Wed, 11 Dec 2024 02:33:42 -0800 Subject: [PATCH] fix: export `Fraction` type from the `fraction.js` library instead of using custom one (#3330) Co-authored-by: Jos de Jong --- types/index.d.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 24388fcaae..750421f975 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,7 @@ import { Decimal } from 'decimal.js' +import { Fraction } from 'fraction.js' + +export { Fraction } export as namespace math @@ -4049,12 +4052,6 @@ export interface MatrixCtor { // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface BigNumber extends Decimal {} -export interface Fraction { - s: bigint - n: bigint - d: bigint -} - export interface Complex { re: number im: number