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:
parent
92a496e584
commit
3e658e4780
16 changed files with 237 additions and 118 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue