1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 00:59:31 +00:00

Add variable constraints, rename type annotation checks to constraints, rename custom type to annotation

This commit is contained in:
Étienne Fildadut 2022-09-08 20:43:36 +09:00
parent 92a496e584
commit 3e658e4780
16 changed files with 237 additions and 118 deletions

View file

@ -136,7 +136,7 @@ types.anselme = {
return { [k] = v }
end
},
type = {
annotated = {
format = function(val)
local k, ke = format(val[1])
if not k then return k, ke end