fix(entities): instance new object properly
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details

This commit is contained in:
Aire-One 2022-10-04 21:30:51 +02:00
parent bebe4a6901
commit 82d0377c72
3 changed files with 9 additions and 8 deletions

View File

@ -19,8 +19,8 @@ local record Function_Info
end
local __Function_Info: metatable<Function_Info> = {
__call = function(self: Function_Info): Function_Info
return self
__call = function(_self: Function_Info): Function_Info
return {}
end,
}

View File

@ -12,8 +12,8 @@ local record Module_Doc
end
local __Module_Doc: metatable<Module_Doc> = {
__call = function(self: Module_Doc): Module_Doc
return self
__call = function(_: Module_Doc): Module_Doc
return {}
end,
}

View File

@ -8,10 +8,11 @@ local record Module_Info
end
local __Module_Info: metatable<Module_Info> = {
__call = function(self: Module_Info, name: string, uri: string): Module_Info
self.name = name
self.uri = uri
return self
__call = function(_self: Module_Info, name: string, uri: string): Module_Info
return {
name = name,
uri = uri,
}
end,
}