From 90f00ed7503d84822d3283c98908401ba141c887 Mon Sep 17 00:00:00 2001 From: Terrillo Walls Date: Sat, 2 Sep 2017 15:45:57 -0500 Subject: [PATCH] More doc updates --- README.md | 4 ++-- constants.js | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d59a4fd..7972a6f 100644 --- a/README.md +++ b/README.md @@ -109,9 +109,9 @@ AppleHealthKit.initHealthKit(null: Object, (err: string, res: Object) => { ... - let options = {value: 200}; + let options = { value: 200 }; AppleHealthKit.saveWeight(options: Object, (err: Object, res: Object) => { - if(err){ + if (err) { console.log("error saving weight to healthkit: ", err); return; } diff --git a/constants.js b/constants.js index 34427d0..4b74d04 100644 --- a/constants.js +++ b/constants.js @@ -1,5 +1,9 @@ 'use strict' +/** + * Apple Health Permissions + * @type {Object} + */ const PERMISSIONS = { DateOfBirth: 'DateOfBirth', BiologicalSex: 'BiologicalSex', @@ -28,7 +32,9 @@ const PERMISSIONS = { SleepAnalysis: 'SleepAnalysis', }; - +/** + * Unit Request Types + */ const UNITS = { gram: 'gram', pound: 'pound', @@ -52,8 +58,6 @@ const UNITS = { mgPerdL: 'mgPerdL', }; - - const CONSTANTS = { Permissions: PERMISSIONS, Units: UNITS, -- 2.26.2