Skip to content

Commit 5f7f7cd

Browse files
committed
fix exports
1 parent 0191ff1 commit 5f7f7cd

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import * as misc from './operations/misc'
1717
import * as utils from './operations/utils'
1818

1919
// Object assign only supports 4 union levels
20-
let out1 = Object.assign(constants, round, misc, utils)
21-
let out2 = Object.assign(relational, arithmetic, algebra, trigonometric)
22-
let out = Object.assign(_Interval, out1, out2, { round })
20+
const out1 = Object.assign(constants, round, misc, utils)
21+
const out2 = Object.assign(relational, arithmetic, algebra, trigonometric)
22+
const out = Object.assign(_Interval, out1, out2, { round })
2323

24-
export default out;
25-
export { out as Interval };
24+
export default out
25+
export { _Interval as Interval }
2626
export * from './operations/relational'
2727
export * from './operations/arithmetic'
2828
export * from './operations/algebra'

src/interval.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class _Interval {
297297

298298
// class callable without new
299299
// https://stackoverflow.com/questions/32807163/call-constructor-on-typescript-class-without-new
300-
type Interval = _Interval;
300+
type Interval = _Interval
301301
const Interval = _Interval as typeof _Interval & ((lo?: Interval | number, hi?: Interval | number) => Interval)
302302

303-
export { Interval };
303+
export { Interval }

src/round.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ const round = {
5454
* @function
5555
*/
5656
safeNext: next,
57-
prev (x: number): number { return cache.prev(x); },
58-
next (x: number): number { return cache.next(x); },
57+
prev(x: number): number {
58+
return cache.prev(x)
59+
},
60+
next(x: number): number {
61+
return cache.next(x)
62+
},
5963

6064
// prettier-ignore
6165
addLo (x: number, y: number): number { return round.prev(x + y) },

0 commit comments

Comments
 (0)