feat: Use ActionCallback for schedule
This has two advantages: - Each schedule entry can take either a single function or table of functions. - We get a better type definition.
This commit is contained in:
@@ -10,5 +10,5 @@ local FulfillmentConfig
|
||||
---@class Config
|
||||
---@field fulfillment FulfillmentConfig
|
||||
---@field devices DeviceInterface[]?
|
||||
---@field schedule table<string, function>?
|
||||
---@field schedule table<string, fun() | fun()[]>?
|
||||
local Config
|
||||
|
||||
Reference in New Issue
Block a user