aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-11-13 10:40:24 +0100
committerKim Alvefur <zash@zash.se>2023-11-13 10:40:24 +0100
commit43d1285dbd6914b497d6c7684160d9dd57b97120 (patch)
tree3b384b76919fa3dc60fd3081ad77792e01e7677b /teal-src
parente06c97ca525af2d40134737336322551f0ad77b4 (diff)
downloadprosody-43d1285dbd6914b497d6c7684160d9dd57b97120.tar.gz
prosody-43d1285dbd6914b497d6c7684160d9dd57b97120.zip
moduleapi: Update Teal spec
Updates for 65fb0d7a2312::59c3d775c7fa
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/module.d.tl5
1 files changed, 4 insertions, 1 deletions
diff --git a/teal-src/module.d.tl b/teal-src/module.d.tl
index 142596f2..22038bc4 100644
--- a/teal-src/module.d.tl
+++ b/teal-src/module.d.tl
@@ -34,8 +34,11 @@ global record moduleapi
get_option : config_getter<any>
get_option_scalar : config_getter<nil | boolean | number | string>
get_option_string : config_getter<string>
- get_option_number : config_getter<number>
+ get_option_number : function (moduleapi, string, number, number, number) : number
+ get_option_integer : function (moduleapi, string, integer, integer, integer) : integer
get_option_boolean : config_getter<boolean>
+ get_option_enum : function<A> (moduleapi, string, ... : A) : A
+ get_option_period : function (moduleapi, string|number, string|number, string|number, string|number) : number
record util_array
-- TODO import def
{ any }