Commit 90f00ed7 authored by Terrillo Walls's avatar Terrillo Walls

More doc updates

parent 026fec5b
......@@ -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;
}
......
'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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment