Skip to content

Commit

Permalink
style(lib): add some JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelgsouza committed Oct 30, 2019
1 parent 396b304 commit 7fc33a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/utils/bmi-table.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as GENRES from './genres'
import { gte, lte, inRange } from './helpers'

/**
* @type{Object}
*/
export default {
[ GENRES.MALE ]: [
imc => lte(Number(imc), 0),
Expand Down
5 changes: 5 additions & 0 deletions src/utils/load-index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import tableCategories from './bmi-table'

/**
* @method loadIndex
* @param {String} genre
* @return {Function}
*/
const loadIndex = genre => weight => {
return tableCategories[ genre ]
.reduce((acc, fn, index) => {
Expand Down
5 changes: 4 additions & 1 deletion src/utils/messages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @type{Object}
*/
const messages = {
'pt-BR': [
null,
Expand All @@ -17,4 +20,4 @@ const messages = {
]
}

export default messages
export default messages

0 comments on commit 7fc33a2

Please sign in to comment.