@dompling/trollscript-types 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +0 -131
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -905,137 +905,6 @@ interface Location {
905
905
 
906
906
  declare const location: Location;
907
907
 
908
- interface Weather {
909
- /**
910
- * 获取当前天气
911
- * @param city 城市名
912
- * @returns 当前天气对象
913
- */
914
- current(city: string): any;
915
-
916
- /**
917
- * 获取天气预报
918
- * @param city 城市名
919
- * @param days 天数
920
- * @returns 天气预报数组
921
- */
922
- forecast(city: string, days: number): any;
923
-
924
- /**
925
- * 根据经纬度获取天气
926
- * @param lat 纬度
927
- * @param lng 经度
928
- * @returns 指定位置的天气对象
929
- */
930
- byLocation(lat: number, lng: number): any;
931
-
932
- }
933
-
934
- declare const weather: Weather;
935
-
936
- interface Health {
937
- /**
938
- * 检查 HealthKit 是否可用
939
- * @returns 是否可用
940
- */
941
- isAvailable(): boolean;
942
-
943
- /**
944
- * 请求健康数据权限
945
- * @param types 权限类型列表 ('stepCount', 'heartRate', 'sleepAnalysis', 'activeEnergyBurned', 'distanceWalkingRunning', 'bodyMass', 'height')
946
- * @returns 是否授权成功
947
- */
948
- requestAccess(types: any): any;
949
-
950
- /**
951
- * 获取授权状态
952
- * @param type 权限类型
953
- * @returns 权限状态
954
- */
955
- getAuthorizationStatus(type: string): any;
956
-
957
- /**
958
- * 获取今日步数
959
- * @returns 今日步数
960
- */
961
- getTodaySteps(): any;
962
-
963
- /**
964
- * 获取指定日期步数
965
- * @param startTimestamp 开始时间戳
966
- * @param endTimestamp 结束时间戳
967
- * @returns 步数
968
- */
969
- getSteps(startTimestamp: number, endTimestamp: number): any;
970
-
971
- /**
972
- * 获取最新心率
973
- * @returns 最新心率对象
974
- */
975
- getLatestHeartRate(): any;
976
-
977
- /**
978
- * 获取心率历史
979
- * @param startTimestamp 开始时间戳
980
- * @param endTimestamp 结束时间戳
981
- * @param limit 限制条数
982
- * @returns 心率历史数组
983
- */
984
- getHeartRateHistory(startTimestamp: number, endTimestamp: number, limit: number): any;
985
-
986
- /**
987
- * 获取最近睡眠
988
- * @returns 最近睡眠记录
989
- */
990
- getLatestSleep(): any;
991
-
992
- /**
993
- * 获取睡眠历史
994
- * @param days 天数
995
- * @returns 睡眠历史记录数组
996
- */
997
- getSleepHistory(days: number): any;
998
-
999
- /**
1000
- * 获取今日活动能量
1001
- * @returns 今日活动能量(千卡)
1002
- */
1003
- getTodayActiveEnergy(): any;
1004
-
1005
- /**
1006
- * 获取今日行走距离
1007
- * @returns 今日行走距离(米)
1008
- */
1009
- getTodayDistance(): any;
1010
-
1011
- /**
1012
- * 获取最新体重
1013
- * @returns 最新体重记录
1014
- */
1015
- getLatestWeight(): any;
1016
-
1017
- /**
1018
- * 获取身高
1019
- * @returns 身高记录
1020
- */
1021
- getHeight(): any;
1022
-
1023
- /**
1024
- * 获取今日健康摘要
1025
- * @returns 今日健康摘要对象
1026
- */
1027
- getTodaySummary(): any;
1028
-
1029
- /**
1030
- * 获取支持的数据类型
1031
- * @returns 支持的健康数据类型数组
1032
- */
1033
- getSupportedTypes(): any;
1034
-
1035
- }
1036
-
1037
- declare const health: Health;
1038
-
1039
908
  interface Calendar {
1040
909
  /**
1041
910
  * 检查权限状态
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dompling/trollscript-types",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "TypeScript definitions for TrollScript",
5
5
  "main": "",
6
6
  "types": "index.d.ts",