Pythe1337N / garmin-connect

Makes it simple to interface with Garmin Connect to get or set any data point.
MIT License
145 stars 59 forks source link

Cannot find name WeightData/UpdateWeight/WaterIntake/GolfSummary/GolfScorecard/HeartRate #76

Open essty0 opened 10 months ago

essty0 commented 10 months ago

Hello, after last update (17.01.2024) we are faced with 6 errors of missing types in node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:60:46 - error TS2304: Cannot find name 'WeightData'. 60 getDailyWeightData(date?: Date): Promise;

node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:63:82 - error TS2304: Cannot find name 'UpdateWeight'.
63     updateWeight(date: Date | undefined, lbs: number, timezone: string): Promise<UpdateWeight>;

node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:64:82 - error TS2304: Cannot find name 'WaterIntake'. 64 updateHydrationLogOunces(date: Date | undefined, valueInOz: number): Promise;

node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:65:31 - error TS2304: Cannot find name 'GolfSummary'.
65     getGolfSummary(): Promise<GolfSummary>;

node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:66:52 - error TS2304: Cannot find name 'GolfScorecard'. 66 getGolfScorecard(scorecardId: number): Promise;


node_modules/garmin-connect/dist/garmin/GarminConnect.d.ts:67:40 - error TS2304: Cannot find name 'HeartRate'.
67     getHeartRate(date?: Date): Promise<HeartRate>;

Typescript version is same as garmin's. 
We use es2017, but changing to ES5 didn't solve issue. 

Could you help to solve it ?