From c3d602a11de758f14e46a2b49539e5fe9c76dd8c Mon Sep 17 00:00:00 2001 From: CppCXY <812125110@qq.com> Date: Wed, 17 Aug 2022 20:04:37 +0800 Subject: =?UTF-8?q?=E6=8F=90=E4=BA=A4typeformat=E9=80=89=E9=A1=B9=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/config/template.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/config') diff --git a/script/config/template.lua b/script/config/template.lua index 60f3dbca..a08b9e53 100644 --- a/script/config/template.lua +++ b/script/config/template.lua @@ -181,6 +181,7 @@ end, function (self, ...) self.subs = { ... } end) +---@format disable-next local template = { ['Lua.runtime.version'] = Type.String >> 'Lua 5.4' << { 'Lua 5.1', @@ -371,6 +372,8 @@ local template = { ['Lua.format.enable'] = Type.Boolean >> true, ['Lua.format.defaultConfig'] = Type.Hash(Type.String, Type.String) >> {}, + ['Lua.typeFormat.config'] = Type.Hash(Type.String, Type.String) + >> {}, ['Lua.spell.dict'] = Type.Array(Type.String), ['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil) >> nil, ['Lua.misc.parameters'] = Type.Array(Type.String), -- cgit v1.2.3