From d67ac00f4e3684d865f8bcb715ddd347f2963a83 Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Sat, 9 Apr 2022 16:27:19 +0000 Subject: [PATCH] Support array of TypeName in vim.validate --- types/neovim/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/neovim/template b/types/neovim/template index e2ecfd4..c306e58 100644 --- a/types/neovim/template +++ b/types/neovim/template @@ -136,7 +136,7 @@ global record vim "userdata" end -- Technically, this should be a union of tuples since the types are dependent and this allows for invalid combos - validate: function({string:{any, TypeName | function(any): (boolean, string), boolean | string}}) + validate: function({string:{any, TypeName | {TypeName} | function(any): (boolean, string), boolean | string}}) -- should be {string:{any, TypeName, boolean} | {any, function(any): (boolean, string)}, string}} record Regex