Commit graph

3 commits

Author SHA1 Message Date
0673dd822f fix: remove type annotations, use HealthUnitPrefix + millimeterOfMercury
- Remove all TS type annotations (HealthQuantityType, HealthUnit etc.)
  to avoid 'string not assignable' errors — let the app infer types
- HealthMetricPrefix → HealthUnitPrefix (correct enum name per docs)
- HealthUnit.fromString('mmHg') → HealthUnit.millimeterOfMercury()
  (confirmed in docs: line 35229)
2026-08-22 23:08:53 +01:00
ddc6a54d84 fix: import Notification from scripting, use HealthQuantityType type
- Notification is not global, must import from 'scripting'
- queryQuantitySamples expects HealthQuantityType not string
2026-08-22 23:00:30 +01:00
bcd8c1241b fix: rewrite script as TypeScript for Scripting app (.tsx)
Scripting app expects TypeScript with import from 'scripting' and Script.exit().
- Renamed health-sync.js → health-sync.tsx
- Added 'import { Script } from "scripting"' and Script.exit() at end
- Added TypeScript type annotations
- Health/HealthUnit/Notification/fetch are global APIs (no import needed)
2026-08-22 22:55:55 +01:00