Browse Source

Add missing variants;

bjorn 1 year ago
parent
commit
0a5d442a8c
2 changed files with 15 additions and 6 deletions
  1. 6 0
      api/lovr/Object/release.lua
  2. 9 6
      api/lovr/getVersion.lua

+ 6 - 0
api/lovr/Object/release.lua

@@ -9,6 +9,12 @@ return {
   ]],
   arguments = {},
   returns = {},
+  variants = {
+    {
+      arguments = {},
+      returns = {}
+    }
+  },
   notes = [[
     The object may not be destroyed immediately if something else is referring to it (e.g. it is
     pushed to a Channel or exists in the payload of a pending event).

+ 9 - 6
api/lovr/getVersion.lua

@@ -4,20 +4,23 @@ return {
   description = 'Get the current major, minor, and patch version of LÖVR.',
   arguments = {},
   returns = {
-    {
-      name = 'major',
+    major = {
       type = 'number',
       description = 'The major version.'
     },
-    {
-      name = 'minor',
+    minor = {
       type = 'number',
       description = 'The minor version.'
     },
-    {
-      name = 'patch',
+    patch = {
       type = 'number',
       description = 'The patch number.'
     }
+  },
+  variants = {
+    {
+      arguments = {},
+      returns = { 'major', 'minor', 'patch' }
+    }
   }
 }