Skip to content

Commit

Permalink
fix: export Fraction type from the fraction.js library instead of…
Browse files Browse the repository at this point in the history
… using custom one (#3330)

Co-authored-by: Jos de Jong <[email protected]>
  • Loading branch information
fchu and josdejong authored Dec 11, 2024
1 parent d8e4073 commit 97da410
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Decimal } from 'decimal.js'
import { Fraction } from 'fraction.js'

export { Fraction }

export as namespace math

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97da410

Please sign in to comment.