@defold-typescript/types 0.52.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (521) hide show
  1. package/api-signatures.json +2074 -1964
  2. package/dist/cli-runtime.js +8966 -0
  3. package/dist/identity-vocabulary.json +660 -0
  4. package/dist/src/index.d.ts +18 -0
  5. package/examples/translations.json +15 -15
  6. package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
  7. package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
  8. package/fixtures/defold-1.12.4/base_doc.json +758 -0
  9. package/fixtures/defold-1.12.4/bit_doc.json +404 -0
  10. package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
  11. package/fixtures/defold-1.12.4/camera_doc.json +664 -0
  12. package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
  13. package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
  14. package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
  15. package/fixtures/defold-1.12.4/crash_doc.json +497 -0
  16. package/fixtures/defold-1.12.4/debug_doc.json +410 -0
  17. package/fixtures/defold-1.12.4/factory_doc.json +219 -0
  18. package/fixtures/defold-1.12.4/font_doc.json +141 -0
  19. package/fixtures/defold-1.12.4/globals_doc.json +42 -0
  20. package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
  21. package/fixtures/defold-1.12.4/go_doc.json +1901 -0
  22. package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
  23. package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
  24. package/fixtures/defold-1.12.4/html5_doc.json +64 -0
  25. package/fixtures/defold-1.12.4/http_doc.json +66 -0
  26. package/fixtures/defold-1.12.4/image_doc.json +170 -0
  27. package/fixtures/defold-1.12.4/io_doc.json +399 -0
  28. package/fixtures/defold-1.12.4/json_doc.json +97 -0
  29. package/fixtures/defold-1.12.4/label_doc.json +220 -0
  30. package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
  31. package/fixtures/defold-1.12.4/math_doc.json +702 -0
  32. package/fixtures/defold-1.12.4/messages_doc.json +579 -0
  33. package/fixtures/defold-1.12.4/model_doc.json +315 -0
  34. package/fixtures/defold-1.12.4/msg_doc.json +137 -0
  35. package/fixtures/defold-1.12.4/os_doc.json +266 -0
  36. package/fixtures/defold-1.12.4/package_doc.json +139 -0
  37. package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
  38. package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
  39. package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
  40. package/fixtures/defold-1.12.4/render_doc.json +1167 -0
  41. package/fixtures/defold-1.12.4/resource_doc.json +762 -0
  42. package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
  43. package/fixtures/defold-1.12.4/sound_doc.json +582 -0
  44. package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
  45. package/fixtures/defold-1.12.4/string_doc.json +412 -0
  46. package/fixtures/defold-1.12.4/sys_doc.json +853 -0
  47. package/fixtures/defold-1.12.4/table_doc.json +166 -0
  48. package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
  49. package/fixtures/defold-1.12.4/timer_doc.json +153 -0
  50. package/fixtures/defold-1.12.4/types_doc.json +212 -0
  51. package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
  52. package/fixtures/defold-1.12.4/window_doc.json +388 -0
  53. package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
  54. package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
  55. package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
  56. package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
  57. package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
  58. package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
  59. package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
  60. package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
  61. package/fixtures/defold-1.13.0/base_doc.json +758 -0
  62. package/fixtures/defold-1.13.0/bit_doc.json +404 -0
  63. package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
  64. package/fixtures/defold-1.13.0/camera_doc.json +900 -0
  65. package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
  66. package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
  67. package/fixtures/defold-1.13.0/compute_doc.json +182 -0
  68. package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
  69. package/fixtures/defold-1.13.0/crash_doc.json +497 -0
  70. package/fixtures/defold-1.13.0/debug_doc.json +410 -0
  71. package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
  72. package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
  73. package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
  74. package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
  75. package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
  76. package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
  77. package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
  78. package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
  79. package/fixtures/defold-1.13.0/factory_doc.json +219 -0
  80. package/fixtures/defold-1.13.0/font_doc.json +141 -0
  81. package/fixtures/defold-1.13.0/globals_doc.json +42 -0
  82. package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
  83. package/fixtures/defold-1.13.0/go_doc.json +1989 -0
  84. package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
  85. package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
  86. package/fixtures/defold-1.13.0/html5_doc.json +64 -0
  87. package/fixtures/defold-1.13.0/http_doc.json +66 -0
  88. package/fixtures/defold-1.13.0/image_doc.json +170 -0
  89. package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
  90. package/fixtures/defold-1.13.0/io_doc.json +399 -0
  91. package/fixtures/defold-1.13.0/json_doc.json +97 -0
  92. package/fixtures/defold-1.13.0/label_doc.json +220 -0
  93. package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
  94. package/fixtures/defold-1.13.0/material_doc.json +238 -0
  95. package/fixtures/defold-1.13.0/math_doc.json +702 -0
  96. package/fixtures/defold-1.13.0/model_doc.json +412 -0
  97. package/fixtures/defold-1.13.0/msg_doc.json +137 -0
  98. package/fixtures/defold-1.13.0/os_doc.json +266 -0
  99. package/fixtures/defold-1.13.0/package_doc.json +139 -0
  100. package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
  101. package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
  102. package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
  103. package/fixtures/defold-1.13.0/render_doc.json +1381 -0
  104. package/fixtures/defold-1.13.0/resource_doc.json +762 -0
  105. package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
  106. package/fixtures/defold-1.13.0/sound_doc.json +582 -0
  107. package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
  108. package/fixtures/defold-1.13.0/string_doc.json +412 -0
  109. package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
  110. package/fixtures/defold-1.13.0/table_doc.json +166 -0
  111. package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
  112. package/fixtures/defold-1.13.0/timer_doc.json +153 -0
  113. package/fixtures/defold-1.13.0/types_doc.json +212 -0
  114. package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
  115. package/fixtures/defold-1.13.0/window_doc.json +388 -0
  116. package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
  117. package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
  118. package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
  119. package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
  120. package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
  121. package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
  122. package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
  123. package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
  124. package/fixtures/defold-1.13.1/base_doc.json +758 -0
  125. package/fixtures/defold-1.13.1/bit_doc.json +404 -0
  126. package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
  127. package/fixtures/defold-1.13.1/camera_doc.json +900 -0
  128. package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
  129. package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
  130. package/fixtures/defold-1.13.1/compute_doc.json +182 -0
  131. package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
  132. package/fixtures/defold-1.13.1/crash_doc.json +497 -0
  133. package/fixtures/defold-1.13.1/debug_doc.json +410 -0
  134. package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
  135. package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
  136. package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
  137. package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
  138. package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
  139. package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
  140. package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
  141. package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
  142. package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
  143. package/fixtures/defold-1.13.1/factory_doc.json +219 -0
  144. package/fixtures/defold-1.13.1/font_doc.json +141 -0
  145. package/fixtures/defold-1.13.1/globals_doc.json +42 -0
  146. package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
  147. package/fixtures/defold-1.13.1/go_doc.json +1989 -0
  148. package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
  149. package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
  150. package/fixtures/defold-1.13.1/html5_doc.json +64 -0
  151. package/fixtures/defold-1.13.1/http_doc.json +66 -0
  152. package/fixtures/defold-1.13.1/image_doc.json +170 -0
  153. package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
  154. package/fixtures/defold-1.13.1/io_doc.json +399 -0
  155. package/fixtures/defold-1.13.1/json_doc.json +97 -0
  156. package/fixtures/defold-1.13.1/label_doc.json +220 -0
  157. package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
  158. package/fixtures/defold-1.13.1/material_doc.json +238 -0
  159. package/fixtures/defold-1.13.1/math_doc.json +702 -0
  160. package/fixtures/defold-1.13.1/model_doc.json +412 -0
  161. package/fixtures/defold-1.13.1/msg_doc.json +137 -0
  162. package/fixtures/defold-1.13.1/os_doc.json +266 -0
  163. package/fixtures/defold-1.13.1/package_doc.json +139 -0
  164. package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
  165. package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
  166. package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
  167. package/fixtures/defold-1.13.1/render_doc.json +1381 -0
  168. package/fixtures/defold-1.13.1/resource_doc.json +762 -0
  169. package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
  170. package/fixtures/defold-1.13.1/sound_doc.json +582 -0
  171. package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
  172. package/fixtures/defold-1.13.1/string_doc.json +412 -0
  173. package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
  174. package/fixtures/defold-1.13.1/table_doc.json +166 -0
  175. package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
  176. package/fixtures/defold-1.13.1/timer_doc.json +153 -0
  177. package/fixtures/defold-1.13.1/types_doc.json +212 -0
  178. package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
  179. package/fixtures/defold-1.13.1/window_doc.json +388 -0
  180. package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
  181. package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
  182. package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
  183. package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
  184. package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
  185. package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
  186. package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
  187. package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
  188. package/fixtures/defold-1.13.2/base_doc.json +759 -0
  189. package/fixtures/defold-1.13.2/bit_doc.json +405 -0
  190. package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
  191. package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
  192. package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
  193. package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
  194. package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
  195. package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
  196. package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
  197. package/fixtures/defold-1.13.2/camera_doc.json +887 -0
  198. package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
  199. package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
  200. package/fixtures/defold-1.13.2/compute_doc.json +183 -0
  201. package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
  202. package/fixtures/defold-1.13.2/crash_doc.json +483 -0
  203. package/fixtures/defold-1.13.2/debug_doc.json +411 -0
  204. package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
  205. package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
  206. package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
  207. package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
  208. package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
  209. package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
  210. package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
  211. package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
  212. package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
  213. package/fixtures/defold-1.13.2/factory_doc.json +206 -0
  214. package/fixtures/defold-1.13.2/font_doc.json +230 -0
  215. package/fixtures/defold-1.13.2/globals_doc.json +64 -0
  216. package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
  217. package/fixtures/defold-1.13.2/go_doc.json +1789 -0
  218. package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
  219. package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
  220. package/fixtures/defold-1.13.2/html5_doc.json +65 -0
  221. package/fixtures/defold-1.13.2/http_doc.json +174 -0
  222. package/fixtures/defold-1.13.2/image_doc.json +298 -0
  223. package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
  224. package/fixtures/defold-1.13.2/io_doc.json +400 -0
  225. package/fixtures/defold-1.13.2/json_doc.json +140 -0
  226. package/fixtures/defold-1.13.2/label_doc.json +427 -0
  227. package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
  228. package/fixtures/defold-1.13.2/material_doc.json +773 -0
  229. package/fixtures/defold-1.13.2/math_doc.json +703 -0
  230. package/fixtures/defold-1.13.2/model_doc.json +472 -0
  231. package/fixtures/defold-1.13.2/msg_doc.json +169 -0
  232. package/fixtures/defold-1.13.2/os_doc.json +269 -0
  233. package/fixtures/defold-1.13.2/package_doc.json +140 -0
  234. package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
  235. package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
  236. package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
  237. package/fixtures/defold-1.13.2/render_doc.json +1623 -0
  238. package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
  239. package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
  240. package/fixtures/defold-1.13.2/sound_doc.json +673 -0
  241. package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
  242. package/fixtures/defold-1.13.2/string_doc.json +413 -0
  243. package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
  244. package/fixtures/defold-1.13.2/table_doc.json +167 -0
  245. package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
  246. package/fixtures/defold-1.13.2/timer_doc.json +214 -0
  247. package/fixtures/defold-1.13.2/types_doc.json +213 -0
  248. package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
  249. package/fixtures/defold-1.13.2/window_doc.json +426 -0
  250. package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
  251. package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
  252. package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
  253. package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
  254. package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
  255. package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
  256. package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
  257. package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
  258. package/fixtures/defold-1.14.0/base_doc.json +759 -0
  259. package/fixtures/defold-1.14.0/bit_doc.json +405 -0
  260. package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
  261. package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
  262. package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
  263. package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
  264. package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
  265. package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
  266. package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
  267. package/fixtures/defold-1.14.0/camera_doc.json +887 -0
  268. package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
  269. package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
  270. package/fixtures/defold-1.14.0/compute_doc.json +183 -0
  271. package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
  272. package/fixtures/defold-1.14.0/crash_doc.json +483 -0
  273. package/fixtures/defold-1.14.0/debug_doc.json +411 -0
  274. package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
  275. package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
  276. package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
  277. package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
  278. package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
  279. package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
  280. package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
  281. package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
  282. package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
  283. package/fixtures/defold-1.14.0/factory_doc.json +206 -0
  284. package/fixtures/defold-1.14.0/font_doc.json +230 -0
  285. package/fixtures/defold-1.14.0/globals_doc.json +64 -0
  286. package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
  287. package/fixtures/defold-1.14.0/go_doc.json +1789 -0
  288. package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
  289. package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
  290. package/fixtures/defold-1.14.0/html5_doc.json +65 -0
  291. package/fixtures/defold-1.14.0/http_doc.json +174 -0
  292. package/fixtures/defold-1.14.0/image_doc.json +298 -0
  293. package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
  294. package/fixtures/defold-1.14.0/io_doc.json +400 -0
  295. package/fixtures/defold-1.14.0/json_doc.json +140 -0
  296. package/fixtures/defold-1.14.0/label_doc.json +427 -0
  297. package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
  298. package/fixtures/defold-1.14.0/material_doc.json +773 -0
  299. package/fixtures/defold-1.14.0/math_doc.json +703 -0
  300. package/fixtures/defold-1.14.0/model_doc.json +472 -0
  301. package/fixtures/defold-1.14.0/msg_doc.json +169 -0
  302. package/fixtures/defold-1.14.0/os_doc.json +269 -0
  303. package/fixtures/defold-1.14.0/package_doc.json +140 -0
  304. package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
  305. package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
  306. package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
  307. package/fixtures/defold-1.14.0/render_doc.json +1628 -0
  308. package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
  309. package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
  310. package/fixtures/defold-1.14.0/sound_doc.json +673 -0
  311. package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
  312. package/fixtures/defold-1.14.0/string_doc.json +413 -0
  313. package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
  314. package/fixtures/defold-1.14.0/table_doc.json +167 -0
  315. package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
  316. package/fixtures/defold-1.14.0/timer_doc.json +214 -0
  317. package/fixtures/defold-1.14.0/types_doc.json +213 -0
  318. package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
  319. package/fixtures/defold-1.14.0/window_doc.json +426 -0
  320. package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
  321. package/generated/b2d.d.ts +39 -39
  322. package/generated/b2d_body.d.ts +11 -11
  323. package/generated/b2d_chain.d.ts +3 -3
  324. package/generated/b2d_fixture.d.ts +5 -5
  325. package/generated/b2d_joint.d.ts +29 -29
  326. package/generated/b2d_shape.d.ts +13 -13
  327. package/generated/b2d_world.d.ts +15 -15
  328. package/generated/buffer.d.ts +5 -6
  329. package/generated/bullet3d.d.ts +6 -6
  330. package/generated/bullet3d_collision_object.d.ts +9 -9
  331. package/generated/bullet3d_constraint.d.ts +78 -78
  332. package/generated/bullet3d_rigid_body.d.ts +3 -3
  333. package/generated/bullet3d_shape.d.ts +11 -11
  334. package/generated/bullet3d_world.d.ts +20 -20
  335. package/generated/camera.d.ts +4 -4
  336. package/generated/collectionfactory.d.ts +2 -3
  337. package/generated/collectionproxy.d.ts +5 -5
  338. package/generated/compute.d.ts +5 -5
  339. package/generated/crash.d.ts +7 -7
  340. package/generated/editor-vm/http.d.ts +13 -13
  341. package/generated/editor-vm/image.d.ts +4 -4
  342. package/generated/editor-vm/json.d.ts +1 -1
  343. package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
  344. package/generated/editor-vm/zip.d.ts +4 -4
  345. package/generated/editor.d.ts +183 -183
  346. package/generated/factory.d.ts +2 -3
  347. package/generated/font.d.ts +4 -4
  348. package/generated/go.d.ts +10 -12
  349. package/generated/graphics.d.ts +23 -26
  350. package/generated/gui.d.ts +44 -58
  351. package/generated/http.d.ts +2 -2
  352. package/generated/image.d.ts +12 -12
  353. package/generated/json.d.ts +4 -4
  354. package/generated/label.d.ts +5 -5
  355. package/generated/liveupdate.d.ts +3 -3
  356. package/generated/material.d.ts +48 -48
  357. package/generated/model.d.ts +46 -14
  358. package/generated/particlefx.d.ts +5 -5
  359. package/generated/physics.d.ts +19 -19
  360. package/generated/profiler.d.ts +3 -5
  361. package/generated/render-script-modules/b2d.d.ts +39 -39
  362. package/generated/render-script-modules/bullet3d.d.ts +5 -5
  363. package/generated/render-script-modules/collectionfactory.d.ts +1 -2
  364. package/generated/render-script-modules/collectionproxy.d.ts +3 -3
  365. package/generated/render-script-modules/factory.d.ts +1 -2
  366. package/generated/render-script-modules/go.d.ts +8 -10
  367. package/generated/render-script-modules/label.d.ts +2 -2
  368. package/generated/render-script-modules/model.d.ts +43 -11
  369. package/generated/render-script-modules/particlefx.d.ts +3 -3
  370. package/generated/render-script-modules/physics.d.ts +12 -12
  371. package/generated/render-script-modules/resource.d.ts +52 -53
  372. package/generated/render-script-modules/sound.d.ts +4 -4
  373. package/generated/render-script-modules/sprite.d.ts +2 -2
  374. package/generated/render-script-modules/tilemap.d.ts +2 -2
  375. package/generated/render.d.ts +44 -45
  376. package/generated/resource.d.ts +58 -59
  377. package/generated/socket.d.ts +18 -23
  378. package/generated/sound.d.ts +6 -6
  379. package/generated/sprite.d.ts +3 -3
  380. package/generated/sys.d.ts +20 -21
  381. package/generated/tilemap.d.ts +3 -3
  382. package/generated/timer.d.ts +3 -3
  383. package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
  384. package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
  385. package/generated/versions/defold-1.12.4/go.d.ts +2 -2
  386. package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
  387. package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
  388. package/generated/versions/defold-1.12.4/label.d.ts +1 -1
  389. package/generated/versions/defold-1.12.4/model.d.ts +42 -10
  390. package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
  391. package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
  392. package/generated/versions/defold-1.12.4/render.d.ts +5 -5
  393. package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
  394. package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
  395. package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
  396. package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
  397. package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
  398. package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
  399. package/generated/versions/defold-1.12.4/window.d.ts +3 -4
  400. package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
  401. package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
  402. package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
  403. package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
  404. package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
  405. package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
  406. package/generated/versions/defold-1.13.0/go.d.ts +2 -2
  407. package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
  408. package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
  409. package/generated/versions/defold-1.13.0/label.d.ts +1 -1
  410. package/generated/versions/defold-1.13.0/model.d.ts +42 -10
  411. package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
  412. package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
  413. package/generated/versions/defold-1.13.0/render.d.ts +5 -5
  414. package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
  415. package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
  416. package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
  417. package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
  418. package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
  419. package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
  420. package/generated/versions/defold-1.13.0/window.d.ts +3 -4
  421. package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
  422. package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
  423. package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
  424. package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
  425. package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
  426. package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
  427. package/generated/versions/defold-1.13.1/go.d.ts +2 -2
  428. package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
  429. package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
  430. package/generated/versions/defold-1.13.1/label.d.ts +1 -1
  431. package/generated/versions/defold-1.13.1/model.d.ts +42 -10
  432. package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
  433. package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
  434. package/generated/versions/defold-1.13.1/render.d.ts +5 -5
  435. package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
  436. package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
  437. package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
  438. package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
  439. package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
  440. package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
  441. package/generated/versions/defold-1.13.1/window.d.ts +3 -4
  442. package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
  443. package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
  444. package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
  445. package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
  446. package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
  447. package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
  448. package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
  449. package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
  450. package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
  451. package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
  452. package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
  453. package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
  454. package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
  455. package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
  456. package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
  457. package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
  458. package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
  459. package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
  460. package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
  461. package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
  462. package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
  463. package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
  464. package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
  465. package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
  466. package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
  467. package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
  468. package/generated/versions/defold-1.13.2/font.d.ts +4 -4
  469. package/generated/versions/defold-1.13.2/go.d.ts +10 -12
  470. package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
  471. package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
  472. package/generated/versions/defold-1.13.2/http.d.ts +2 -2
  473. package/generated/versions/defold-1.13.2/image.d.ts +12 -12
  474. package/generated/versions/defold-1.13.2/json.d.ts +4 -4
  475. package/generated/versions/defold-1.13.2/label.d.ts +5 -5
  476. package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
  477. package/generated/versions/defold-1.13.2/material.d.ts +48 -48
  478. package/generated/versions/defold-1.13.2/model.d.ts +46 -14
  479. package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
  480. package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
  481. package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
  482. package/generated/versions/defold-1.13.2/render.d.ts +43 -44
  483. package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
  484. package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
  485. package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
  486. package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
  487. package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
  488. package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
  489. package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
  490. package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
  491. package/generated/versions/defold-1.13.2/window.d.ts +8 -10
  492. package/generated/vmath.d.ts +0 -1
  493. package/generated/window.d.ts +8 -10
  494. package/identity-vocabulary.json +41 -34
  495. package/package.json +13 -5
  496. package/scripts/cli-runtime.ts +18 -0
  497. package/scripts/example-store-io.ts +2 -2
  498. package/scripts/extension-goldens.ts +9 -5
  499. package/scripts/generate-api-availability.ts +10 -4
  500. package/scripts/generate-api-signatures.ts +1 -1
  501. package/scripts/import-defold-release.ts +1 -1
  502. package/scripts/regen.ts +35 -9
  503. package/scripts/shared-handle-methods.ts +3 -2
  504. package/scripts/signature-store-fs.ts +37 -17
  505. package/scripts/sync-api-docs.ts +127 -20
  506. package/src/api-doc.ts +19 -4
  507. package/src/api-identity.ts +32 -1
  508. package/src/component-properties.d.ts +8 -8
  509. package/src/core-types.ts +29 -13
  510. package/src/doc-corrections.ts +9 -0
  511. package/src/emit-dts.ts +770 -214
  512. package/src/engine-type-name.ts +33 -0
  513. package/src/go-overloads.d.ts +10 -10
  514. package/src/gui-overloads.d.ts +11 -11
  515. package/src/index-slot-classifications.ts +75 -9
  516. package/src/index.ts +4 -1
  517. package/src/lifecycle.ts +2 -2
  518. package/src/publish-dts.ts +16 -0
  519. package/src/script-api.ts +36 -38
  520. package/src/socket-types.d.ts +3 -3
  521. package/src/library-index-slot-classifications.ts +0 -332
@@ -738,7 +738,7 @@ declare global {
738
738
  * // How to get the data from a buffer
739
739
  * export default defineScript({
740
740
  * init() {
741
- * const res_path = go.get<mesh.properties>()("#mesh", "vertices");
741
+ * const res_path = go.get<mesh.Properties>()("#mesh", "vertices");
742
742
  * const buf = resource.get_buffer(res_path);
743
743
  * const stream_positions = buffer.get_stream(buf, "position");
744
744
  *
@@ -841,7 +841,7 @@ declare global {
841
841
  * ```ts
842
842
  * export default defineScript({
843
843
  * init() {
844
- * const font = go.get<label.properties>()("#label", "font");
844
+ * const font = go.get<label.Properties>()("#label", "font");
845
845
  * const metrics = resource.get_text_metrics(font, "The quick brown fox\n jumps over the lazy dog");
846
846
  * pprint(metrics);
847
847
  * },
@@ -874,7 +874,7 @@ declare global {
874
874
  * ```ts
875
875
  * export default defineScript({
876
876
  * init() {
877
- * const font = go.get<label.properties>()("#label", "font");
877
+ * const font = go.get<label.Properties>()("#label", "font");
878
878
  * const metrics = resource.get_text_metrics(font, "The quick brown fox\n jumps over the lazy dog");
879
879
  * pprint(metrics);
880
880
  * },
@@ -1064,7 +1064,7 @@ declare global {
1064
1064
  * // Assuming the folder "/res" is added to the project custom resources:
1065
1065
  * // load a texture resource and set it on a sprite
1066
1066
  * const buffer = resource.load("/res/new.texturec");
1067
- * resource.set(go.get<sprite.properties>()("#sprite", "texture0"), buffer);
1067
+ * resource.set(go.get<sprite.Properties>()("#sprite", "texture0"), buffer);
1068
1068
  * ```
1069
1069
  */
1070
1070
  function set(path: string | Hash, buffer: Opaque<"buffer"> & { length: LuaLengthMethod<number> }): void;
@@ -1223,7 +1223,7 @@ declare global {
1223
1223
  *
1224
1224
  * export default defineScript({
1225
1225
  * init() {
1226
- * const res_path = go.get<mesh.properties>()("#mesh", "vertices");
1226
+ * const res_path = go.get<mesh.Properties>()("#mesh", "vertices");
1227
1227
  *
1228
1228
  * const positions = [
1229
1229
  * 1, -1, 0,
@@ -1357,7 +1357,7 @@ declare global {
1357
1357
  * // the engine registers a texture format only when the driver supports it
1358
1358
  * const format = graphics.TEXTURE_FORMAT_RGB;
1359
1359
  * if (format !== undefined) {
1360
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1360
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1361
1361
  * const args = { width, height, type: graphics.TEXTURE_TYPE_2D, format, num_mip_maps: 1 };
1362
1362
  * resource.set_texture(resource_path, args, buf);
1363
1363
  * }
@@ -1390,7 +1390,7 @@ declare global {
1390
1390
  * // the engine registers a texture format only when the driver supports it
1391
1391
  * const format = graphics.TEXTURE_FORMAT_RGB;
1392
1392
  * if (format !== undefined) {
1393
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1393
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1394
1394
  * const args = { width, height, x, y, type: graphics.TEXTURE_TYPE_2D, format, num_mip_maps: 1 };
1395
1395
  * resource.set_texture(resource_path, args, buf);
1396
1396
  * }
@@ -1411,7 +1411,7 @@ declare global {
1411
1411
  * // the engine registers a texture format only when the driver supports it
1412
1412
  * const format = graphics.TEXTURE_FORMAT_RGB;
1413
1413
  * if (format === undefined) return;
1414
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1414
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1415
1415
  * // the "my_buffer" resource is expected to hold 128 * 128 * 3 bytes!
1416
1416
  * const args = {
1417
1417
  * width: 128,
@@ -21,7 +21,7 @@ declare global {
21
21
  * LuaSocket is free software, released under the MIT license (same license as the Lua core).
22
22
  */
23
23
  namespace socket {
24
- interface client {
24
+ interface SocketClient {
25
25
  /**
26
26
  * Closes the TCP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
27
27
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -167,7 +167,7 @@ declare global {
167
167
  */
168
168
  shutdown(mode: string): number;
169
169
  }
170
- interface connected {
170
+ interface SocketConnected {
171
171
  /**
172
172
  * Closes a UDP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
173
173
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -268,7 +268,7 @@ declare global {
268
268
  */
269
269
  settimeout(value: number): void;
270
270
  }
271
- interface master {
271
+ interface SocketMaster {
272
272
  /**
273
273
  * Binds a master object to address and port on the local host.
274
274
  *
@@ -351,12 +351,12 @@ declare global {
351
351
  */
352
352
  settimeout(value: number, mode?: string): void;
353
353
  }
354
- interface server {
354
+ interface SocketServer {
355
355
  /**
356
356
  * Waits for a remote connection on the server object and returns a client object representing that connection.
357
357
  * Calling `socket.select` with a server object in the `recvt` parameter before a call to accept does not guarantee accept will return immediately. Use the `settimeout` method or accept might block until another client shows up.
358
358
  */
359
- accept(): LuaMultiReturn<[client | undefined, string | undefined]>;
359
+ accept(): LuaMultiReturn<[SocketClient | undefined, string | undefined]>;
360
360
  /**
361
361
  * Closes the TCP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
362
362
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -453,7 +453,7 @@ declare global {
453
453
  */
454
454
  settimeout(value: number, mode?: string): void;
455
455
  }
456
- interface unconnected {
456
+ interface SocketUnconnected {
457
457
  /**
458
458
  * Closes a UDP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
459
459
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -585,7 +585,7 @@ declare global {
585
585
  * @param locport - optional local port to bind to.
586
586
  * @param family - optional socket family to use, `"inet"` or `"inet6"`.
587
587
  */
588
- function connect(address: string, port: number, locaddr?: string, locport?: number, family?: string): LuaMultiReturn<[client | undefined, string | undefined]>;
588
+ function connect(address: string, port: number, locaddr?: string, locport?: number, family?: string): LuaMultiReturn<[SocketClient | undefined, string | undefined]>;
589
589
  /**
590
590
  * Returns the time in seconds, relative to the system epoch (Unix epoch time since January 1, 1970 (UTC) or Windows file time since January 1, 1601 (UTC)).
591
591
  * You should use the values returned by this function for relative measurements only.
@@ -664,7 +664,7 @@ declare global {
664
664
  * @param sendt - array with sockets that are watched to see if it is OK to immediately write on them.
665
665
  * @param timeout - the maximum amount of time (in seconds) to wait for a change in status. Nil, negative or omitted timeout value allows the function to block indefinitely.
666
666
  */
667
- function select(recvt: (client | master | unconnected)[], sendt: (client | master | unconnected)[], timeout?: number): LuaMultiReturn<[(client | master | unconnected)[], (client | master | unconnected)[], string | undefined]>;
667
+ function select(recvt: (SocketClient | SocketMaster | SocketUnconnected)[], sendt: (SocketClient | SocketMaster | SocketUnconnected)[], timeout?: number): LuaMultiReturn<[(SocketClient | SocketMaster | SocketUnconnected)[], (SocketClient | SocketMaster | SocketUnconnected)[], string | undefined]>;
668
668
  /**
669
669
  * This function drops a number of arguments and returns the remaining.
670
670
  * It is useful to avoid creation of dummy variables:
@@ -700,21 +700,21 @@ declare global {
700
700
  /**
701
701
  * Creates and returns an IPv4 TCP master object. A master object can be transformed into a server object with the method `listen` (after a call to `bind`) or into a client object with the method `connect`. The only other method supported by a master object is the `close` method.
702
702
  */
703
- function tcp(): LuaMultiReturn<[master | undefined, string | undefined]>;
703
+ function tcp(): LuaMultiReturn<[SocketMaster | undefined, string | undefined]>;
704
704
  /**
705
705
  * Creates and returns an IPv6 TCP master object. A master object can be transformed into a server object with the method `listen` (after a call to `bind`) or into a client object with the method connect. The only other method supported by a master object is the close method.
706
706
  * Note: The TCP object returned will have the option "ipv6-v6only" set to true.
707
707
  */
708
- function tcp6(): LuaMultiReturn<[master | undefined, string | undefined]>;
708
+ function tcp6(): LuaMultiReturn<[SocketMaster | undefined, string | undefined]>;
709
709
  /**
710
710
  * Creates and returns an unconnected IPv4 UDP object. Unconnected objects support the `sendto`, `receive`, `receivefrom`, `getoption`, `getsockname`, `setoption`, `settimeout`, `setpeername`, `setsockname`, and `close` methods. The `setpeername` method is used to connect the object.
711
711
  */
712
- function udp(): LuaMultiReturn<[unconnected | undefined, string | undefined]>;
712
+ function udp(): LuaMultiReturn<[SocketUnconnected | undefined, string | undefined]>;
713
713
  /**
714
714
  * Creates and returns an unconnected IPv6 UDP object. Unconnected objects support the `sendto`, `receive`, `receivefrom`, `getoption`, `getsockname`, `setoption`, `settimeout`, `setpeername`, `setsockname`, and `close` methods. The `setpeername` method is used to connect the object.
715
715
  * Note: The UDP object returned will have the option "ipv6-v6only" set to true.
716
716
  */
717
- function udp6(): LuaMultiReturn<[unconnected | undefined, string | undefined]>;
717
+ function udp6(): LuaMultiReturn<[SocketUnconnected | undefined, string | undefined]>;
718
718
  namespace dns {
719
719
  /**
720
720
  * This function converts a host name to IPv4 or IPv6 address.
@@ -265,7 +265,7 @@ declare global {
265
265
  * ```
266
266
  */
267
267
  function stop(url: string | Hash | Url, stop_properties?: { play_id?: number }): void;
268
- interface properties {
268
+ interface Properties {
269
269
  /**
270
270
  * The gain on the sound-component. Note that gain is in linear scale,
271
271
  * between 0 and 1.
@@ -183,7 +183,7 @@ declare global {
183
183
  * ```
184
184
  */
185
185
  function set_vflip(url: string | Hash | Url, flip: boolean): void;
186
- interface properties {
186
+ interface Properties {
187
187
  /**
188
188
  * READ ONLY The current animation id. An animation that plays currently for the sprite. The type of the property is hash.
189
189
  */
@@ -7,7 +7,7 @@ declare global {
7
7
  * error handling and debugging.
8
8
  */
9
9
  namespace sys {
10
- type NetworkConnectivity = typeof sys.NETWORK_DISCONNECTED | typeof sys.NETWORK_CONNECTED_CELLULAR | typeof sys.NETWORK_CONNECTED;
10
+ type Network = typeof sys.NETWORK_DISCONNECTED | typeof sys.NETWORK_CONNECTED_CELLULAR | typeof sys.NETWORK_CONNECTED;
11
11
  /**
12
12
  * network connected through other, non cellular, connection
13
13
  */
@@ -248,7 +248,7 @@ declare global {
248
248
  * }
249
249
  * ```
250
250
  */
251
- function get_connectivity(): sys.NetworkConnectivity;
251
+ function get_connectivity(): sys.Network;
252
252
  /**
253
253
  * Returns a table with engine information.
254
254
  *
@@ -192,7 +192,7 @@ declare global {
192
192
  * ```
193
193
  */
194
194
  function set_visible(url: string | Hash | Url, layer: string | Hash, visible: boolean): void;
195
- interface properties {
195
+ interface Properties {
196
196
  /**
197
197
  * The material used when rendering the tile map. The type of the property is hash.
198
198
  */
@@ -5,8 +5,7 @@ declare global {
5
5
  * and screen dimming.
6
6
  */
7
7
  namespace window {
8
- type DimModeState = typeof window.DIMMING_UNKNOWN | typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
9
- type DimModeStateSettable = typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
8
+ type Dimming = typeof window.DIMMING_UNKNOWN | typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
10
9
  /**
11
10
  * Dimming mode is used to control whether or not a mobile device should dim the screen after a period without user interaction.
12
11
  */
@@ -56,7 +55,7 @@ declare global {
56
55
  * - `window.DIMMING_ON`
57
56
  * - `window.DIMMING_OFF`
58
57
  */
59
- function get_dim_mode(): window.DimModeState;
58
+ function get_dim_mode(): window.Dimming;
60
59
  /**
61
60
  * This returns the content scale of the current display.
62
61
  *
@@ -103,7 +102,7 @@ declare global {
103
102
  * - `window.DIMMING_ON`
104
103
  * - `window.DIMMING_OFF`
105
104
  */
106
- function set_dim_mode(mode: window.DimModeStateSettable): void;
105
+ function set_dim_mode(mode: Exclude<window.Dimming, typeof window.DIMMING_UNKNOWN>): void;
107
106
  /**
108
107
  * Sets a window event listener. Only one window event listener can be set at a time.
109
108
  *
@@ -9,7 +9,7 @@ declare global {
9
9
  /**
10
10
  * Box2D axis-aligned bounding box
11
11
  */
12
- interface aabb {
12
+ interface Aabb {
13
13
  /**
14
14
  * Lower bound.
15
15
  */
@@ -19,12 +19,12 @@ declare global {
19
19
  */
20
20
  upper: Vector3;
21
21
  }
22
- type b2Body = Opaque<"b2Body">;
23
- type b2World = Opaque<"b2World">;
22
+ type B2Body = Opaque<"b2Body">;
23
+ type B2World = Opaque<"b2World">;
24
24
  /**
25
25
  * Box2D 3.x chain definition
26
26
  */
27
- interface chain_definition {
27
+ interface ChainDefinition {
28
28
  /**
29
29
  * Chain vertices.
30
30
  */
@@ -56,7 +56,7 @@ declare global {
56
56
  /**
57
57
  * Collision filter fields to override.
58
58
  */
59
- filter?: b2d.filter_options;
59
+ filter?: b2d.FilterOptions;
60
60
  /**
61
61
  * Whether to enable sensor events.
62
62
  */
@@ -65,7 +65,7 @@ declare global {
65
65
  /**
66
66
  * Box2D chain geometry
67
67
  */
68
- interface chain_geometry {
68
+ interface ChainGeometry {
69
69
  /**
70
70
  * Whether the chain is closed.
71
71
  */
@@ -90,15 +90,15 @@ declare global {
90
90
  /**
91
91
  * Box2D contact data
92
92
  */
93
- interface contact_data {
93
+ interface ContactData {
94
94
  /**
95
95
  * First contact shape.
96
96
  */
97
- shape_a: b2d.shape_info;
97
+ shape_a: b2d.ShapeInfo;
98
98
  /**
99
99
  * Second contact shape.
100
100
  */
101
- shape_b: b2d.shape_info;
101
+ shape_b: b2d.ShapeInfo;
102
102
  /**
103
103
  * Contact normal.
104
104
  */
@@ -114,12 +114,12 @@ declare global {
114
114
  /**
115
115
  * Contact manifold points.
116
116
  */
117
- points: b2d.contact_point[];
117
+ points: b2d.ContactPoint[];
118
118
  }
119
119
  /**
120
120
  * Box2D contact manifold point
121
121
  */
122
- interface contact_point {
122
+ interface ContactPoint {
123
123
  /**
124
124
  * World contact point.
125
125
  */
@@ -164,7 +164,7 @@ declare global {
164
164
  /**
165
165
  * Box2D explosion definition
166
166
  */
167
- interface explosion_definition {
167
+ interface ExplosionDefinition {
168
168
  /**
169
169
  * Explosion center.
170
170
  */
@@ -189,7 +189,7 @@ declare global {
189
189
  /**
190
190
  * Box2D collision filter
191
191
  */
192
- interface filter {
192
+ interface Filter {
193
193
  /**
194
194
  * Collision category bits.
195
195
  */
@@ -206,7 +206,7 @@ declare global {
206
206
  /**
207
207
  * Partial Box2D collision filter
208
208
  */
209
- interface filter_options {
209
+ interface FilterOptions {
210
210
  /**
211
211
  * Collision category bits.
212
212
  */
@@ -223,15 +223,15 @@ declare global {
223
223
  /**
224
224
  * Box2D 2.x cast hit
225
225
  */
226
- interface fixture_cast_hit {
226
+ interface FixtureCastHit {
227
227
  /**
228
228
  * Hit fixture.
229
229
  */
230
- fixture: b2d.fixture_info;
230
+ fixture: b2d.FixtureInfo;
231
231
  /**
232
232
  * Hit fixture child shape.
233
233
  */
234
- shape: b2d.fixture_info;
234
+ shape: b2d.FixtureInfo;
235
235
  /**
236
236
  * Hit point.
237
237
  */
@@ -256,11 +256,11 @@ declare global {
256
256
  /**
257
257
  * Box2D 2.x fixture definition
258
258
  */
259
- interface fixture_definition {
259
+ interface FixtureDefinition {
260
260
  /**
261
261
  * Shape definition.
262
262
  */
263
- shape: b2d.shape.definition;
263
+ shape: b2d.shape.Definition;
264
264
  /**
265
265
  * Fixture friction.
266
266
  */
@@ -284,12 +284,12 @@ declare global {
284
284
  /**
285
285
  * Collision filter.
286
286
  */
287
- filter?: b2d.filter;
287
+ filter?: b2d.Filter;
288
288
  }
289
289
  /**
290
290
  * Box2D 2.x fixture information
291
291
  */
292
- interface fixture_info {
292
+ interface FixtureInfo {
293
293
  /**
294
294
  * Owning body, when returned from a world query.
295
295
  */
@@ -305,7 +305,7 @@ declare global {
305
305
  /**
306
306
  * Shape type.
307
307
  */
308
- type: b2d.shape.SHAPE_TYPE;
308
+ type: b2d.shape.ShapeType;
309
309
  /**
310
310
  * Whether the fixture is a sensor.
311
311
  */
@@ -330,7 +330,7 @@ declare global {
330
330
  /**
331
331
  * Mass properties for a Box2D body or shape.
332
332
  */
333
- interface mass_data {
333
+ interface MassData {
334
334
  /**
335
335
  * Body mass, usually in kilograms.
336
336
  */
@@ -347,7 +347,7 @@ declare global {
347
347
  /**
348
348
  * Box2D mover capsule
349
349
  */
350
- interface mover_capsule {
350
+ interface MoverCapsule {
351
351
  /**
352
352
  * First capsule center.
353
353
  */
@@ -364,11 +364,11 @@ declare global {
364
364
  /**
365
365
  * Box2D mover collision plane
366
366
  */
367
- interface mover_plane {
367
+ interface MoverPlane {
368
368
  /**
369
369
  * Colliding shape.
370
370
  */
371
- shape: b2d.shape_info;
371
+ shape: b2d.ShapeInfo;
372
372
  /**
373
373
  * Plane normal.
374
374
  */
@@ -385,7 +385,7 @@ declare global {
385
385
  /**
386
386
  * Box2D world-query filter
387
387
  */
388
- interface query_filter {
388
+ interface QueryFilter {
389
389
  /**
390
390
  * Optional collision category bits.
391
391
  */
@@ -402,11 +402,11 @@ declare global {
402
402
  /**
403
403
  * Box2D 3.x cast hit
404
404
  */
405
- interface shape_cast_hit {
405
+ interface ShapeCastHit {
406
406
  /**
407
407
  * Hit shape.
408
408
  */
409
- shape: b2d.shape_info;
409
+ shape: b2d.ShapeInfo;
410
410
  /**
411
411
  * Hit point.
412
412
  */
@@ -431,7 +431,7 @@ declare global {
431
431
  /**
432
432
  * Direct Box2D shape cast result
433
433
  */
434
- interface shape_cast_output {
434
+ interface ShapeCastOutput {
435
435
  /**
436
436
  * Hit point.
437
437
  */
@@ -449,11 +449,11 @@ declare global {
449
449
  */
450
450
  iterations: number;
451
451
  }
452
- type shape_create_definition = { shape: b2d.shape.definition; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.filter } | { type: b2d.shape.SHAPE_TYPE; radius?: number; center?: Vector3; center1?: Vector3; center2?: Vector3; v0?: Vector3; v1?: Vector3; v2?: Vector3; v3?: Vector3; hx?: number; hy?: number; angle?: number; vertices?: Vector3[]; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.filter };
452
+ type ShapeCreateDefinition = { shape: b2d.shape.Definition; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter } | { type: b2d.shape.ShapeType; radius?: number; center?: Vector3; center1?: Vector3; center2?: Vector3; v0?: Vector3; v1?: Vector3; v2?: Vector3; v3?: Vector3; hx?: number; hy?: number; angle?: number; vertices?: Vector3[]; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter };
453
453
  /**
454
454
  * Box2D 3.x shape information
455
455
  */
456
- interface shape_info {
456
+ interface ShapeInfo {
457
457
  /**
458
458
  * Shape index on the body.
459
459
  */
@@ -465,7 +465,7 @@ declare global {
465
465
  /**
466
466
  * Shape type.
467
467
  */
468
- type: b2d.shape.SHAPE_TYPE;
468
+ type: b2d.shape.ShapeType;
469
469
  /**
470
470
  * Whether the shape is a sensor.
471
471
  */
@@ -498,7 +498,7 @@ declare global {
498
498
  /**
499
499
  * World transform for a Box2D body.
500
500
  */
501
- interface transform {
501
+ interface Transform {
502
502
  /**
503
503
  * World position of the body origin.
504
504
  */
@@ -511,7 +511,7 @@ declare global {
511
511
  /**
512
512
  * Box2D broad-phase query statistics
513
513
  */
514
- interface tree_stats {
514
+ interface TreeStats {
515
515
  /**
516
516
  * Number of tree nodes visited.
517
517
  */
@@ -524,7 +524,7 @@ declare global {
524
524
  /**
525
525
  * Box2D version information
526
526
  */
527
- interface version_info {
527
+ interface VersionInfo {
528
528
  /**
529
529
  * Full Box2D version string.
530
530
  */
@@ -545,7 +545,7 @@ declare global {
545
545
  /**
546
546
  * Box2D world counters
547
547
  */
548
- interface world_counters {
548
+ interface WorldCounters {
549
549
  /**
550
550
  * Number of bodies.
551
551
  */
@@ -594,7 +594,7 @@ declare global {
594
594
  /**
595
595
  * Box2D world profiling data
596
596
  */
597
- interface world_profile {
597
+ interface WorldProfile {
598
598
  /**
599
599
  * Total step time.
600
600
  */
@@ -696,7 +696,7 @@ declare global {
696
696
  *
697
697
  * @returns version information
698
698
  */
699
- function get_version(): b2d.version_info;
699
+ function get_version(): b2d.VersionInfo;
700
700
  /**
701
701
  * Get the Box2D world from the current collection
702
702
  *
@@ -6,8 +6,8 @@ declare global {
6
6
  * Functions for interacting with Box2D bodies.
7
7
  */
8
8
  namespace b2d.body {
9
- type b2Body = Opaque<"b2Body">;
10
- type b2World = Opaque<"b2World">;
9
+ type B2Body = Opaque<"b2Body">;
10
+ type B2World = Opaque<"b2World">;
11
11
  type B2 = typeof b2d.body.B2_DYNAMIC_BODY | typeof b2d.body.B2_KINEMATIC_BODY | typeof b2d.body.B2_STATIC_BODY;
12
12
  /**
13
13
  * Dynamic body
@@ -77,7 +77,7 @@ declare global {
77
77
  * @param body - body
78
78
  * @returns body bounds
79
79
  */
80
- function compute_aabb(body: Opaque<"b2Body">): b2d.aabb;
80
+ function compute_aabb(body: Opaque<"b2Body">): b2d.Aabb;
81
81
  /**
82
82
  * Chains are one-sided connected segments with optional ghost vertices at
83
83
  * the ends of open chains. Ghost vertices are creation-time chain data only and
@@ -96,7 +96,7 @@ declare global {
96
96
  * }
97
97
  * ```
98
98
  */
99
- function create_chain(body: Opaque<"b2Body">, definition: b2d.chain_definition): LuaMultiReturn<[Opaque<"b2Chain">, b2d.shape_info[]]>;
99
+ function create_chain(body: Opaque<"b2Body">, definition: b2d.ChainDefinition): LuaMultiReturn<[Opaque<"b2Chain">, b2d.ShapeInfo[]]>;
100
100
  /**
101
101
  * Creates a fixture and attach it to this body. Use this function if you need
102
102
  * to set some fixture parameters, like friction. Otherwise you can create the
@@ -118,7 +118,7 @@ declare global {
118
118
  * }
119
119
  * ```
120
120
  */
121
- function create_fixture(body: Opaque<"b2Body">, definition: { shape: { type: typeof b2d.shape.SHAPE_TYPE_POLYGON | typeof b2d.shape.SHAPE_TYPE_BOX; hx: number; hy: number; center?: Vector3; angle?: number } | { type: typeof b2d.shape.SHAPE_TYPE_POLYGON | typeof b2d.shape.SHAPE_TYPE_BOX; vertices: Vector3[] } | { type: typeof b2d.shape.SHAPE_TYPE_CIRCLE; radius: number; center?: Vector3 } | { type: typeof b2d.shape.SHAPE_TYPE_EDGE; v1: Vector3; v2: Vector3; v0?: Vector3; v3?: Vector3 } | { type: typeof b2d.shape.SHAPE_TYPE_CHAIN; vertices: Vector3[]; loop?: boolean; prev_vertex?: Vector3; next_vertex?: Vector3 }; friction?: number; restitution?: number; density?: number; sensor?: boolean; is_sensor?: boolean; filter?: { category_bits: number; mask_bits: number; group_index: number } }): b2d.fixture_info;
121
+ function create_fixture(body: Opaque<"b2Body">, definition: { shape: { type: typeof b2d.shape.SHAPE_TYPE_POLYGON | typeof b2d.shape.SHAPE_TYPE_BOX; hx: number; hy: number; center?: Vector3; angle?: number } | { type: typeof b2d.shape.SHAPE_TYPE_POLYGON | typeof b2d.shape.SHAPE_TYPE_BOX; vertices: Vector3[] } | { type: typeof b2d.shape.SHAPE_TYPE_CIRCLE; radius: number; center?: Vector3 } | { type: typeof b2d.shape.SHAPE_TYPE_EDGE; v1: Vector3; v2: Vector3; v0?: Vector3; v3?: Vector3 } | { type: typeof b2d.shape.SHAPE_TYPE_CHAIN; vertices: Vector3[]; loop?: boolean; prev_vertex?: Vector3; next_vertex?: Vector3 }; friction?: number; restitution?: number; density?: number; sensor?: boolean; is_sensor?: boolean; filter?: { category_bits: number; mask_bits: number; group_index: number } }): b2d.FixtureInfo;
122
122
  /**
123
123
  * Creates a shape and attaches it to this body.
124
124
  * If the density is non-zero, this function automatically updates the mass of the body.
@@ -201,14 +201,14 @@ declare global {
201
201
  * @param body - body
202
202
  * @returns array of contact tables
203
203
  */
204
- function get_contact_data(body: Opaque<"b2Body">): b2d.contact_data[];
204
+ function get_contact_data(body: Opaque<"b2Body">): b2d.ContactData[];
205
205
  /**
206
206
  * Get the fixtures attached to this body.
207
207
  *
208
208
  * @param body - body
209
209
  * @returns the attached fixtures. **⚠️ `index` is 1-based; passed to Defold unchanged.**
210
210
  */
211
- function get_fixtures(body: Opaque<"b2Body">): b2d.fixture_info[];
211
+ function get_fixtures(body: Opaque<"b2Body">): b2d.FixtureInfo[];
212
212
  /**
213
213
  * Get the total force currently applied on this object
214
214
  *
@@ -309,7 +309,7 @@ declare global {
309
309
  * @param body - body
310
310
  * @returns the mass data
311
311
  */
312
- function get_mass_data(body: Opaque<"b2Body">): b2d.mass_data;
312
+ function get_mass_data(body: Opaque<"b2Body">): b2d.MassData;
313
313
  /**
314
314
  * Get the body name.
315
315
  *
@@ -344,7 +344,7 @@ declare global {
344
344
  * @param body - body
345
345
  * @returns attached shapes
346
346
  */
347
- function get_shapes(body: Opaque<"b2Body">): b2d.shape_info[];
347
+ function get_shapes(body: Opaque<"b2Body">): b2d.ShapeInfo[];
348
348
  /**
349
349
  * Get the sleep velocity threshold.
350
350
  *
@@ -358,7 +358,7 @@ declare global {
358
358
  * @param body - body
359
359
  * @returns the body transform
360
360
  */
361
- function get_transform(body: Opaque<"b2Body">): b2d.transform;
361
+ function get_transform(body: Opaque<"b2Body">): b2d.Transform;
362
362
  /**
363
363
  * Get the type of this body.
364
364
  *
@@ -539,7 +539,7 @@ declare global {
539
539
  * @param body - body
540
540
  * @param data - the mass data
541
541
  */
542
- function set_mass_data(body: Opaque<"b2Body">, data: b2d.mass_data): void;
542
+ function set_mass_data(body: Opaque<"b2Body">, data: b2d.MassData): void;
543
543
  /**
544
544
  * Set the body name.
545
545
  *
@@ -7,7 +7,7 @@ declare global {
7
7
  * shapes, so it is represented by a separate `b2Chain` handle.
8
8
  */
9
9
  namespace b2d.chain {
10
- type b2Chain = Opaque<"b2Chain">;
10
+ type B2Chain = Opaque<"b2Chain">;
11
11
  /**
12
12
  * Destroying a chain removes all segment shapes owned by the chain. Destroying
13
13
  * any segment shape through `b2d.body.destroy_shape` also destroys its parent chain.
@@ -35,7 +35,7 @@ declare global {
35
35
  * @param chain - chain
36
36
  * @returns chain geometry
37
37
  */
38
- function get_geometry(chain: Opaque<"b2Chain">): b2d.chain_geometry;
38
+ function get_geometry(chain: Opaque<"b2Chain">): b2d.ChainGeometry;
39
39
  /**
40
40
  * Get chain material id.
41
41
  *
@@ -63,7 +63,7 @@ declare global {
63
63
  * @param chain - chain
64
64
  * @returns chain segment shapes
65
65
  */
66
- function get_segments(chain: Opaque<"b2Chain">): b2d.shape_info[];
66
+ function get_segments(chain: Opaque<"b2Chain">): b2d.ShapeInfo[];
67
67
  /**
68
68
  * Get the world owning a chain.
69
69
  *