split lua stubs into one set for ldoc, and one set for lua-ls

This commit is contained in:
jacqueline
2024-01-05 17:15:47 +11:00
parent aa1dd3d522
commit e12a68a74d
24 changed files with 206 additions and 79 deletions
+10
View File
@@ -0,0 +1,10 @@
--- @meta
--- Properties and functions that deal with the device's battery and power state.
--- @class power
--- @field battery_pct Property The battery's current charge, as a percentage of the maximum charge.
--- @field battery_millivolts Property The battery's current voltage, in millivolts.
--- @field plugged_in Property Whether or not the device is currently receiving external power.
local power = {}
return power