Skip to content

Commit

Permalink
refactor: index export pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
philihp committed Jul 2, 2024
1 parent 81c7bdc commit e03943f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import rating from './rating'
import rate from './rate'
import ordinal from './ordinal'
import predictWin from './predict-win'
import predictDraw from './predict-draw'

export { rating, rate, ordinal, predictWin, predictDraw }
export { default as rating } from './rating'
export { default as rate } from './rate'
export { default as ordinal } from './ordinal'
export { default as predictWin } from './predict-win'
export { default as predictDraw } from './predict-draw'
12 changes: 5 additions & 7 deletions src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import plackettLuce from './plackett-luce'
import bradleyTerryFull from './bradley-terry-full'
import bradleyTerryPart from './bradley-terry-part'
import thurstoneMostellerFull from './thurstone-mosteller-full'
import thurstoneMostellerPart from './thurstone-mosteller-part'

export { plackettLuce, bradleyTerryFull, bradleyTerryPart, thurstoneMostellerFull, thurstoneMostellerPart }
export { default as plackettLuce } from './plackett-luce'
export { default as bradleyTerryFull } from './bradley-terry-full'
export { default as bradleyTerryPart } from './bradley-terry-part'
export { default as thurstoneMostellerFull } from './thurstone-mosteller-full'
export { default as thurstoneMostellerPart } from './thurstone-mosteller-part'

0 comments on commit e03943f

Please sign in to comment.