Comparison

teal-src/module.d.tl @ 12643:9fa749cbd376

teal-src: update module.d.tl with new access control methods
author Matthew Wild <mwild1@gmail.com>
date Wed, 15 Jun 2022 14:22:26 +0100
parent 12502:5862ddf71e3c
child 12979:fbbf4f0db8f0
comparison
equal deleted inserted replaced
12642:9061f9621330 12643:9fa749cbd376
124 end 124 end
125 environment : module_environment 125 environment : module_environment
126 path : string 126 path : string
127 resource_path : string 127 resource_path : string
128 128
129 -- access control
130 may : function (moduleapi, string, table|string)
131 default_permission : function (string, string)
132 default_permissions : function (string, { string })
133
129 -- methods the module can add 134 -- methods the module can add
130 load : function () 135 load : function ()
131 add_host : function (moduleapi) 136 add_host : function (moduleapi)
132 save : function () : any 137 save : function () : any
133 restore : function (any) 138 restore : function (any)