@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
@@ -18,7 +18,7 @@ declare global {
18
18
  * non-negative.
19
19
  */
20
20
  namespace bullet3d.rigid_body {
21
- type FLAG = typeof bullet3d.rigid_body.BT_DISABLE_WORLD_GRAVITY | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY;
21
+ type Flag = typeof bullet3d.rigid_body.BT_DISABLE_WORLD_GRAVITY | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD | typeof bullet3d.rigid_body.BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY;
22
22
  /**
23
23
  * Disable automatic world gravity. Set this bit before assigning custom body gravity that must survive later world-gravity changes or re-adding the body to a world.
24
24
  */
@@ -129,7 +129,7 @@ declare global {
129
129
  * @param body - rigid body
130
130
  * @returns world-space bounds in Defold units
131
131
  */
132
- function compute_aabb(body: Opaque<"btRigidBody">): bullet3d.world.aabb;
132
+ function compute_aabb(body: Opaque<"btRigidBody">): bullet3d.world.Aabb;
133
133
  /**
134
134
  * Get angular damping
135
135
  *
@@ -283,7 +283,7 @@ declare global {
283
283
  * @param body - rigid body
284
284
  * @returns owning world
285
285
  */
286
- function get_world(body: Opaque<"btRigidBody">): bullet3d.btDiscreteDynamicsWorld;
286
+ function get_world(body: Opaque<"btRigidBody">): bullet3d.BtDiscreteDynamicsWorld;
287
287
  /**
288
288
  * Test a rigid body flag
289
289
  *
@@ -10,9 +10,9 @@ declare global {
10
10
  * are not modified together. Lengths use Defold world units.
11
11
  */
12
12
  namespace bullet3d.shape {
13
- type btCollisionShape = Opaque<"btCollisionShape">;
14
- type definition = { type: typeof bullet3d.shape.SHAPE_TYPE_SPHERE; diameter: number; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_BOX; dimensions: Vector3; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_CAPSULE; diameter: number; height: number; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_HULL; vertices: Vector3[]; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion };
15
- type SHAPE_TYPE = typeof bullet3d.shape.SHAPE_TYPE_BOX | typeof bullet3d.shape.SHAPE_TYPE_CAPSULE | typeof bullet3d.shape.SHAPE_TYPE_HULL | typeof bullet3d.shape.SHAPE_TYPE_MESH | typeof bullet3d.shape.SHAPE_TYPE_SPHERE;
13
+ type BtCollisionShape = Opaque<"btCollisionShape">;
14
+ type Definition = { type: typeof bullet3d.shape.SHAPE_TYPE_SPHERE; diameter: number; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_BOX; dimensions: Vector3; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_CAPSULE; diameter: number; height: number; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion } | { type: typeof bullet3d.shape.SHAPE_TYPE_HULL; vertices: Vector3[]; position?: Vector3; rotation?: Quaternion; target_rotation?: Quaternion };
15
+ type ShapeType = typeof bullet3d.shape.SHAPE_TYPE_BOX | typeof bullet3d.shape.SHAPE_TYPE_CAPSULE | typeof bullet3d.shape.SHAPE_TYPE_HULL | typeof bullet3d.shape.SHAPE_TYPE_MESH | typeof bullet3d.shape.SHAPE_TYPE_SPHERE;
16
16
  /**
17
17
  * Box shape type Value `1`. Shape data contains positive vector3 `dimensions` in Defold units.
18
18
  */
@@ -39,21 +39,21 @@ declare global {
39
39
  * @param shape - shape handle
40
40
  * @returns owning collision object
41
41
  */
42
- function get_collision_object(shape: bullet3d.shape.btCollisionShape): Opaque<"btCollisionObject" | "btRigidBody">;
42
+ function get_collision_object(shape: bullet3d.shape.BtCollisionShape): Opaque<"btCollisionObject" | "btRigidBody">;
43
43
  /**
44
44
  * Get the one-based child index.
45
45
  *
46
46
  * @param shape - shape handle
47
47
  * @returns one-based shape index. **⚠️ 1-based; passed to Defold unchanged.**
48
48
  */
49
- function get_index(shape: bullet3d.shape.btCollisionShape): number;
49
+ function get_index(shape: bullet3d.shape.BtCollisionShape): number;
50
50
  /**
51
51
  * A non-compound collision object's only shape has no child transform, so this
52
52
  * function returns the identity transform for it.
53
53
  *
54
54
  * @param shape - shape handle
55
55
  */
56
- function get_local_transform(shape: bullet3d.shape.btCollisionShape): LuaMultiReturn<[Vector3, Quaternion]>;
56
+ function get_local_transform(shape: bullet3d.shape.BtCollisionShape): LuaMultiReturn<[Vector3, Quaternion]>;
57
57
  /**
58
58
  * The returned table always contains `type`, one of `bullet3d.shape.SHAPE_TYPE_*`.
59
59
  * A sphere also contains numeric `diameter`; a box contains vector3
@@ -66,21 +66,21 @@ declare global {
66
66
  * @param shape - shape handle
67
67
  * @returns typed shape geometry in Defold units
68
68
  */
69
- function get_shape(shape: bullet3d.shape.btCollisionShape): bullet3d.shape.definition | { type: typeof bullet3d.shape.SHAPE_TYPE_MESH };
69
+ function get_shape(shape: bullet3d.shape.BtCollisionShape): bullet3d.shape.Definition | { type: typeof bullet3d.shape.SHAPE_TYPE_MESH };
70
70
  /**
71
71
  * Get the normalized Defold shape type.
72
72
  *
73
73
  * @param shape - shape handle
74
74
  * @returns collision shape type
75
75
  */
76
- function get_type(shape: bullet3d.shape.btCollisionShape): bullet3d.shape.SHAPE_TYPE;
76
+ function get_type(shape: bullet3d.shape.BtCollisionShape): bullet3d.shape.ShapeType;
77
77
  /**
78
78
  * Test whether a shape handle and its owner still exist.
79
79
  *
80
80
  * @param shape - shape handle
81
81
  * @returns validity
82
82
  */
83
- function is_valid(shape: bullet3d.shape.btCollisionShape): boolean;
83
+ function is_valid(shape: bullet3d.shape.BtCollisionShape): boolean;
84
84
  /**
85
85
  * A non-compound collision object's only shape has no child transform and is
86
86
  * rejected. The binding normalizes the supplied rotation.
@@ -89,7 +89,7 @@ declare global {
89
89
  * @param position - finite local position
90
90
  * @param rotation - finite non-zero local rotation
91
91
  */
92
- function set_local_transform(shape: bullet3d.shape.btCollisionShape, position: Vector3, rotation: Quaternion): void;
92
+ function set_local_transform(shape: bullet3d.shape.BtCollisionShape, position: Vector3, rotation: Quaternion): void;
93
93
  /**
94
94
  * The table uses the same format as `get_shape`. Its `type` must match the
95
95
  * existing shape because changing native shape type is not supported. Primitive
@@ -116,7 +116,7 @@ declare global {
116
116
  * });
117
117
  * ```
118
118
  */
119
- function set_shape(shape: bullet3d.shape.btCollisionShape, data: bullet3d.shape.definition): void;
119
+ function set_shape(shape: bullet3d.shape.BtCollisionShape, data: bullet3d.shape.Definition): void;
120
120
  }
121
121
  }
122
122
 
@@ -97,7 +97,7 @@ declare global {
97
97
  /**
98
98
  * Bullet world axis-aligned bounding box
99
99
  */
100
- interface aabb {
100
+ interface Aabb {
101
101
  /**
102
102
  * lower world-space bound in Defold units
103
103
  */
@@ -110,7 +110,7 @@ declare global {
110
110
  /**
111
111
  * Bullet world cast result
112
112
  */
113
- interface cast_result {
113
+ interface CastResult {
114
114
  /**
115
115
  * hit collision object
116
116
  */
@@ -143,7 +143,7 @@ declare global {
143
143
  /**
144
144
  * Bullet world contact result
145
145
  */
146
- interface contact_result {
146
+ interface ContactResult {
147
147
  /**
148
148
  * first collision object
149
149
  */
@@ -172,7 +172,7 @@ declare global {
172
172
  /**
173
173
  * Bullet world query filter
174
174
  */
175
- interface query_filter {
175
+ interface QueryFilter {
176
176
  /**
177
177
  * unsigned 16-bit category bits; defaults to `65535`
178
178
  */
@@ -213,7 +213,7 @@ declare global {
213
213
  * @param max_results - maximum sorted hits, or zero for all
214
214
  * @returns cast results sorted by ascending fraction. **⚠️ `shape_index` is 1-based; passed to Defold unchanged.**
215
215
  */
216
- function cast_ray(world: bullet3d.btDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, filter?: bullet3d.world.query_filter, max_results?: number): bullet3d.world.cast_result[];
216
+ function cast_ray(world: bullet3d.BtDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, filter?: bullet3d.world.QueryFilter, max_results?: number): bullet3d.world.CastResult[];
217
217
  /**
218
218
  * Queues the same ray query as bullet3d.world.cast_ray and returns without
219
219
  * executing it. After the next physics step, `callback(self, hits)` receives the
@@ -250,7 +250,7 @@ declare global {
250
250
  * }
251
251
  * ```
252
252
  */
253
- function cast_ray_async(world: bullet3d.btDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, callback: (self: unknown, hits: bullet3d.world.cast_result[]) => void, filter?: bullet3d.world.query_filter, max_results?: number): void;
253
+ function cast_ray_async(world: bullet3d.BtDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, callback: (self: unknown, hits: bullet3d.world.CastResult[]) => void, filter?: bullet3d.world.QueryFilter, max_results?: number): void;
254
254
  /**
255
255
  * Equivalent to bullet3d.world.cast_ray with one result, but returns the
256
256
  * hit table directly or `nil` on a miss.
@@ -280,7 +280,7 @@ declare global {
280
280
  * });
281
281
  * ```
282
282
  */
283
- function cast_ray_closest(world: bullet3d.btDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, filter?: bullet3d.world.query_filter): bullet3d.world.cast_result | undefined;
283
+ function cast_ray_closest(world: bullet3d.BtDiscreteDynamicsWorld, origin: Vector3, translation: Vector3, filter?: bullet3d.world.QueryFilter): bullet3d.world.CastResult | undefined;
284
284
  /**
285
285
  * Sweeps the temporary shape from `shape.position` by `translation`, while
286
286
  * interpolating from `shape.rotation` to `shape.target_rotation`. Translation
@@ -299,7 +299,7 @@ declare global {
299
299
  * @param max_results - maximum sorted hits, or zero for all
300
300
  * @returns cast results sorted by ascending fraction. **⚠️ `shape_index` is 1-based; passed to Defold unchanged.**
301
301
  */
302
- function cast_shape(world: bullet3d.btDiscreteDynamicsWorld, shape: bullet3d.shape.definition, translation: Vector3, filter?: bullet3d.world.query_filter, max_results?: number): bullet3d.world.cast_result[];
302
+ function cast_shape(world: bullet3d.BtDiscreteDynamicsWorld, shape: bullet3d.shape.Definition, translation: Vector3, filter?: bullet3d.world.QueryFilter, max_results?: number): bullet3d.world.CastResult[];
303
303
  /**
304
304
  * Queues the same convex sweep as bullet3d.world.cast_shape and returns
305
305
  * without executing it. After the next physics step, `callback(self, hits)`
@@ -315,7 +315,7 @@ declare global {
315
315
  * @param filter - query filter
316
316
  * @param max_results - maximum sorted hits, or zero for all
317
317
  */
318
- function cast_shape_async(world: bullet3d.btDiscreteDynamicsWorld, shape: bullet3d.shape.definition, translation: Vector3, callback: (self: unknown, hits: bullet3d.world.cast_result[]) => void, filter?: bullet3d.world.query_filter, max_results?: number): void;
318
+ function cast_shape_async(world: bullet3d.BtDiscreteDynamicsWorld, shape: bullet3d.shape.Definition, translation: Vector3, callback: (self: unknown, hits: bullet3d.world.CastResult[]) => void, filter?: bullet3d.world.QueryFilter, max_results?: number): void;
319
319
  /**
320
320
  * Equivalent to bullet3d.world.cast_shape with one result, but returns
321
321
  * the hit table directly or `nil` on a miss.
@@ -326,7 +326,7 @@ declare global {
326
326
  * @param filter - query filter
327
327
  * @returns closest cast result, or `nil` on a miss. **⚠️ `shape_index` is 1-based; passed to Defold unchanged.**
328
328
  */
329
- function cast_shape_closest(world: bullet3d.btDiscreteDynamicsWorld, shape: bullet3d.shape.definition, translation: Vector3, filter?: bullet3d.world.query_filter): bullet3d.world.cast_result | undefined;
329
+ function cast_shape_closest(world: bullet3d.BtDiscreteDynamicsWorld, shape: bullet3d.shape.Definition, translation: Vector3, filter?: bullet3d.world.QueryFilter): bullet3d.world.CastResult | undefined;
330
330
  /**
331
331
  * Runs Bullet's discrete pair contact algorithm without changing the simulation.
332
332
  * Both borrowed handles must belong to `world` and must identify different
@@ -340,7 +340,7 @@ declare global {
340
340
  * @param max_results - maximum number of contact points, or zero for all
341
341
  * @returns normalized contact results
342
342
  */
343
- function contact_pair_test(world: bullet3d.btDiscreteDynamicsWorld, object_a: Opaque<"btCollisionObject" | "btRigidBody">, object_b: Opaque<"btCollisionObject" | "btRigidBody">, max_results?: number): bullet3d.world.contact_result[];
343
+ function contact_pair_test(world: bullet3d.BtDiscreteDynamicsWorld, object_a: Opaque<"btCollisionObject" | "btRigidBody">, object_b: Opaque<"btCollisionObject" | "btRigidBody">, max_results?: number): bullet3d.world.ContactResult[];
344
344
  /**
345
345
  * Runs Bullet's discrete contact test between `object` and matching objects in
346
346
  * the same world. The supplied object is always `object_a` in returned contacts.
@@ -373,14 +373,14 @@ declare global {
373
373
  * });
374
374
  * ```
375
375
  */
376
- function contact_test(world: bullet3d.btDiscreteDynamicsWorld, object: Opaque<"btCollisionObject" | "btRigidBody">, filter?: bullet3d.world.query_filter, max_results?: number): bullet3d.world.contact_result[];
376
+ function contact_test(world: bullet3d.BtDiscreteDynamicsWorld, object: Opaque<"btCollisionObject" | "btRigidBody">, filter?: bullet3d.world.QueryFilter, max_results?: number): bullet3d.world.ContactResult[];
377
377
  /**
378
378
  * Get the number of collision objects in the world
379
379
  *
380
380
  * @param world - world handle
381
381
  * @returns number of collision objects
382
382
  */
383
- function get_collision_object_count(world: bullet3d.btDiscreteDynamicsWorld): number;
383
+ function get_collision_object_count(world: bullet3d.BtDiscreteDynamicsWorld): number;
384
384
  /**
385
385
  * Returns the Defold-owned collision objects currently registered in the world.
386
386
  * Internal or unmanaged Bullet objects without Defold ownership metadata are
@@ -390,21 +390,21 @@ declare global {
390
390
  * @param max_results - maximum number of results, or zero for all
391
391
  * @returns array of collision-object handles
392
392
  */
393
- function get_collision_objects(world: bullet3d.btDiscreteDynamicsWorld, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
393
+ function get_collision_objects(world: bullet3d.BtDiscreteDynamicsWorld, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
394
394
  /**
395
395
  * Get world gravity
396
396
  *
397
397
  * @param world - world handle
398
398
  * @returns gravity in Defold units per second squared
399
399
  */
400
- function get_gravity(world: bullet3d.btDiscreteDynamicsWorld): Vector3;
400
+ function get_gravity(world: bullet3d.BtDiscreteDynamicsWorld): Vector3;
401
401
  /**
402
402
  * Test whether a world handle is valid
403
403
  *
404
404
  * @param world - world handle
405
405
  * @returns `true` if the native world still exists
406
406
  */
407
- function is_valid(world: bullet3d.btDiscreteDynamicsWorld): boolean;
407
+ function is_valid(world: bullet3d.BtDiscreteDynamicsWorld): boolean;
408
408
  /**
409
409
  * Finds collision objects whose Bullet broadphase bounds overlap the supplied
410
410
  * world-space AABB. This is intentionally a broadphase query and can include
@@ -418,7 +418,7 @@ declare global {
418
418
  * @param max_results - maximum number of results, or zero for all
419
419
  * @returns array of overlapping collision-object handles
420
420
  */
421
- function overlap_aabb(world: bullet3d.btDiscreteDynamicsWorld, aabb: bullet3d.world.aabb, filter?: bullet3d.world.query_filter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
421
+ function overlap_aabb(world: bullet3d.BtDiscreteDynamicsWorld, aabb: bullet3d.world.Aabb, filter?: bullet3d.world.QueryFilter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
422
422
  /**
423
423
  * Performs an exact narrow-phase test using a temporary zero-radius Bullet
424
424
  * sphere at the world-space point. A result is returned only for a contact with
@@ -431,7 +431,7 @@ declare global {
431
431
  * @param max_results - maximum number of results, or zero for all
432
432
  * @returns array of overlapping collision-object handles
433
433
  */
434
- function overlap_point(world: bullet3d.btDiscreteDynamicsWorld, point: Vector3, filter?: bullet3d.world.query_filter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
434
+ function overlap_point(world: bullet3d.BtDiscreteDynamicsWorld, point: Vector3, filter?: bullet3d.world.QueryFilter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
435
435
  /**
436
436
  * Performs an exact Bullet contact test for a temporary sphere, box, Y-axis
437
437
  * capsule, or convex hull. Multiple native contact points for the same target
@@ -464,7 +464,7 @@ declare global {
464
464
  * });
465
465
  * ```
466
466
  */
467
- function overlap_shape(world: bullet3d.btDiscreteDynamicsWorld, shape: bullet3d.shape.definition, filter?: bullet3d.world.query_filter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
467
+ function overlap_shape(world: bullet3d.BtDiscreteDynamicsWorld, shape: bullet3d.shape.Definition, filter?: bullet3d.world.QueryFilter, max_results?: number): Opaque<"btCollisionObject" | "btRigidBody">[];
468
468
  /**
469
469
  * Bullet propagates the new value to active dynamic bodies unless they have
470
470
  * `bullet3d.rigid_body.BT_DISABLE_WORLD_GRAVITY` set. Such bodies retain their
@@ -485,7 +485,7 @@ declare global {
485
485
  * });
486
486
  * ```
487
487
  */
488
- function set_gravity(world: bullet3d.btDiscreteDynamicsWorld, gravity: Vector3): void;
488
+ function set_gravity(world: bullet3d.BtDiscreteDynamicsWorld, gravity: Vector3): void;
489
489
  }
490
490
  }
491
491
 
@@ -6,7 +6,7 @@ declare global {
6
6
  * Messages to control camera components and camera focus.
7
7
  */
8
8
  namespace camera {
9
- type ORTHO_MODE = typeof camera.ORTHO_MODE_AUTO_COVER | typeof camera.ORTHO_MODE_AUTO_FIT | typeof camera.ORTHO_MODE_FIXED;
9
+ type OrthoMode = typeof camera.ORTHO_MODE_AUTO_COVER | typeof camera.ORTHO_MODE_AUTO_FIT | typeof camera.ORTHO_MODE_FIXED;
10
10
  /**
11
11
  * auto-cover orthographic zoom mode Computes zoom so the original display area covers the entire window while preserving aspect ratio. Equivalent to using max(window_width/width, window_height/height). The result is multiplied by the user-controlled orthographic zoom.
12
12
  */
@@ -96,7 +96,7 @@ declare global {
96
96
  * @returns one of camera.ORTHO_MODE_FIXED, camera.ORTHO_MODE_AUTO_FIT or
97
97
  * camera.ORTHO_MODE_AUTO_COVER
98
98
  */
99
- function get_orthographic_mode(camera?: Url | number | string | Hash): camera.ORTHO_MODE;
99
+ function get_orthographic_mode(camera?: Url | number | string | Hash): camera.OrthoMode;
100
100
  /**
101
101
  * Gets the positive user-controlled orthographic zoom multiplier. In auto-fit and auto-cover
102
102
  * modes, this value is multiplied with camera.get_orthographic_auto_zoom(camera).
@@ -221,7 +221,7 @@ declare global {
221
221
  * @param camera - camera id
222
222
  * @param mode - camera.ORTHO_MODE_FIXED, camera.ORTHO_MODE_AUTO_FIT or camera.ORTHO_MODE_AUTO_COVER
223
223
  */
224
- function set_orthographic_mode(camera: Url | number | string | Hash | undefined, mode: camera.ORTHO_MODE): void;
224
+ function set_orthographic_mode(camera: Url | number | string | Hash | undefined, mode: camera.OrthoMode): void;
225
225
  /**
226
226
  * Sets the positive user-controlled orthographic zoom multiplier. In auto-fit and auto-cover
227
227
  * modes, this value is multiplied with camera.get_orthographic_auto_zoom(camera).
@@ -249,7 +249,7 @@ declare global {
249
249
  * ```
250
250
  */
251
251
  function world_to_screen(world_pos: Vector3, camera?: Url | number | string | Hash): Vector3;
252
- interface properties {
252
+ interface Properties {
253
253
  /**
254
254
  * The ratio between the frustum width and height. Used when calculating the
255
255
  * projection of a perspective camera.
@@ -7,8 +7,7 @@ declare global {
7
7
  * used to dynamically spawn collections into the runtime.
8
8
  */
9
9
  namespace collectionfactory {
10
- type Status = typeof collectionfactory.STATUS_UNLOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_LOADED;
11
- type STATUS = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
10
+ type Status = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
12
11
  /**
13
12
  * The collection factory resources are loaded.
14
13
  */
@@ -94,7 +93,7 @@ declare global {
94
93
  * @param url - the collection factory component to get status from
95
94
  * @returns status of the collection factory component
96
95
  */
97
- function get_status(url: string | Hash | Url): collectionfactory.STATUS;
96
+ function get_status(url: string | Hash | Url): collectionfactory.Status;
98
97
  /**
99
98
  * Resources loaded are referenced by the collection factory component until the existing (parent) collection is destroyed or collectionfactory.unload is called.
100
99
  * Calling this function when the factory is not marked as dynamic loading does nothing.
@@ -11,7 +11,7 @@ declare global {
11
11
  * Data delivered to a collectionproxy.load callback. The available
12
12
  * field depends on the callback message identifier.
13
13
  */
14
- interface load_data {
14
+ interface LoadData {
15
15
  /**
16
16
  * Loading progress from 0 to 1 for `proxy_loading`.
17
17
  */
@@ -21,8 +21,8 @@ declare global {
21
21
  */
22
22
  code?: number;
23
23
  }
24
- type TIME_STEP_MODE = 0 | 1;
25
- type RESULT = typeof collectionproxy.RESULT_ALREADY_LOADED | typeof collectionproxy.RESULT_LOADING | typeof collectionproxy.RESULT_NOT_EXCLUDED;
24
+ type TimeStepMode = 0 | 1;
25
+ type Result = typeof collectionproxy.RESULT_ALREADY_LOADED | typeof collectionproxy.RESULT_LOADING | typeof collectionproxy.RESULT_NOT_EXCLUDED;
26
26
  /**
27
27
  * The collection proxy is already loaded, so its collection cannot be changed.
28
28
  */
@@ -78,7 +78,7 @@ declare global {
78
78
  * });
79
79
  * ```
80
80
  */
81
- function load(url: string | Hash | Url, options: {} | undefined, callback: (self: unknown, message_id: Hash, message: collectionproxy.load_data, sender: Url) => void): void;
81
+ function load(url: string | Hash | Url, options: {} | undefined, callback: (self: unknown, message_id: Hash, message: collectionproxy.LoadData, sender: Url) => void): void;
82
82
  /**
83
83
  * The collection should be loaded by the collection proxy.
84
84
  * Setting the collection to "nil" will revert it back to the original collection.
@@ -102,7 +102,7 @@ declare global {
102
102
  * msg.post("/go#collectionproxy", "enable");
103
103
  * ```
104
104
  */
105
- function set_collection(url: string | Hash | Url, prototype: string | undefined): LuaMultiReturn<[boolean, collectionproxy.RESULT | undefined]>;
105
+ function set_collection(url: string | Hash | Url, prototype: string | undefined): LuaMultiReturn<[boolean, collectionproxy.Result | undefined]>;
106
106
  }
107
107
  }
108
108
 
@@ -16,7 +16,7 @@ declare global {
16
16
  * const constants = compute.get_constants("/my_compute.computec");
17
17
  * ```
18
18
  */
19
- function get_constants(path: Hash | string): material.constant_info[];
19
+ function get_constants(path: Hash | string): material.ConstantInfo[];
20
20
  /**
21
21
  * Returns a table of all the texture samplers in the compute program. This function will return all the texture samplers
22
22
  * that are available, even the ones that have not been specified in the compute resource.
@@ -28,7 +28,7 @@ declare global {
28
28
  * const samplers = compute.get_samplers("/my_compute.computec");
29
29
  * ```
30
30
  */
31
- function get_samplers(path: Hash | string): material.sampler_info[];
31
+ function get_samplers(path: Hash | string): material.SamplerInfo[];
32
32
  /**
33
33
  * Returns a table of all the textures from the compute program.
34
34
  *
@@ -39,7 +39,7 @@ declare global {
39
39
  * const textures = compute.get_textures("/my_compute.computec");
40
40
  * ```
41
41
  */
42
- function get_textures(path: Hash | string): material.texture_info[];
42
+ function get_textures(path: Hash | string): material.TextureInfo[];
43
43
  /**
44
44
  * Sets shader constants in a compute program, if the constants exist.
45
45
  *
@@ -66,7 +66,7 @@ declare global {
66
66
  * });
67
67
  * ```
68
68
  */
69
- function set_constants(path: Hash | string, constants: LuaMap<string | Hash, material.constant_options> | Record<string, material.constant_options>): void;
69
+ function set_constants(path: Hash | string, constants: LuaMap<string | Hash, material.ConstantOptions> | Record<string, material.ConstantOptions>): void;
70
70
  /**
71
71
  * Sets texture samplers in a compute program, if the samplers exist. Use this function to change the settings of texture samplers.
72
72
  * To set actual textures that should be bound to the samplers, use the `compute.set_textures` function instead.
@@ -78,7 +78,7 @@ declare global {
78
78
  * compute.set_samplers("/my_compute.computec", { texture_sampler: { u_wrap: graphics.TEXTURE_WRAP_REPEAT, v_wrap: graphics.TEXTURE_WRAP_MIRRORED_REPEAT } });
79
79
  * ```
80
80
  */
81
- function set_samplers(path: Hash | string, samplers: LuaMap<string | Hash, material.sampler_options> | Record<string, material.sampler_options>): void;
81
+ function set_samplers(path: Hash | string, samplers: LuaMap<string | Hash, material.SamplerOptions> | Record<string, material.SamplerOptions>): void;
82
82
  /**
83
83
  * Sets textures in a compute program, if the samplers exist.
84
84
  *
@@ -7,7 +7,7 @@ declare global {
7
7
  /**
8
8
  * Loaded crash module
9
9
  */
10
- interface module_info {
10
+ interface ModuleInfo {
11
11
  /**
12
12
  * module name
13
13
  */
@@ -17,8 +17,8 @@ declare global {
17
17
  */
18
18
  address: string;
19
19
  }
20
- type USERFIELD = number;
21
- type SYSFIELD = typeof crash.SYSFIELD_ENGINE_VERSION | typeof crash.SYSFIELD_ENGINE_HASH | typeof crash.SYSFIELD_DEVICE_MODEL | typeof crash.SYSFIELD_MANUFACTURER | typeof crash.SYSFIELD_SYSTEM_NAME | typeof crash.SYSFIELD_SYSTEM_VERSION | typeof crash.SYSFIELD_LANGUAGE | typeof crash.SYSFIELD_DEVICE_LANGUAGE | typeof crash.SYSFIELD_TERRITORY | typeof crash.SYSFIELD_ANDROID_BUILD_FINGERPRINT;
20
+ type UserField = number;
21
+ type SysField = typeof crash.SYSFIELD_ENGINE_VERSION | typeof crash.SYSFIELD_ENGINE_HASH | typeof crash.SYSFIELD_DEVICE_MODEL | typeof crash.SYSFIELD_MANUFACTURER | typeof crash.SYSFIELD_SYSTEM_NAME | typeof crash.SYSFIELD_SYSTEM_VERSION | typeof crash.SYSFIELD_LANGUAGE | typeof crash.SYSFIELD_DEVICE_LANGUAGE | typeof crash.SYSFIELD_TERRITORY | typeof crash.SYSFIELD_ANDROID_BUILD_FINGERPRINT;
22
22
  /**
23
23
  * android build fingerprint
24
24
  */
@@ -93,7 +93,7 @@ declare global {
93
93
  * @param handle - crash dump handle
94
94
  * @returns loaded modules
95
95
  */
96
- function get_modules(handle: number): crash.module_info[];
96
+ function get_modules(handle: number): crash.ModuleInfo[];
97
97
  /**
98
98
  * read signal number from a crash report
99
99
  *
@@ -108,7 +108,7 @@ declare global {
108
108
  * @param index - system field enum. Must be less than crash.SYSFIELD_MAX
109
109
  * @returns value recorded in the crash dump, or `nil` if it didn't exist
110
110
  */
111
- function get_sys_field(handle: number, index: crash.SYSFIELD): string | undefined;
111
+ function get_sys_field(handle: number, index: crash.SysField): string | undefined;
112
112
  /**
113
113
  * reads user field from a loaded crash dump
114
114
  *
@@ -116,7 +116,7 @@ declare global {
116
116
  * @param index - user data slot index. **0️⃣ 0-based; passed to Defold unchanged.**
117
117
  * @returns user data value recorded in the crash dump
118
118
  */
119
- function get_user_field(handle: number, index: crash.USERFIELD): string;
119
+ function get_user_field(handle: number, index: crash.UserField): string;
120
120
  /**
121
121
  * The crash dump will be removed from disk upon a successful
122
122
  * load, so loading is one-shot.
@@ -144,7 +144,7 @@ declare global {
144
144
  * @param index - slot index. 0-indexed. **0️⃣ 0-based; passed to Defold unchanged.**
145
145
  * @param value - string value to store
146
146
  */
147
- function set_user_field(index: crash.USERFIELD, value: string): void;
147
+ function set_user_field(index: crash.UserField, value: string): void;
148
148
  /**
149
149
  * Performs the same steps as if a crash had just occured but
150
150
  * allows the program to continue.
@@ -6,8 +6,8 @@ declare global {
6
6
  * Editor scripting documentation
7
7
  */
8
8
  namespace http {
9
- type response = Opaque<"http.response">;
10
- type route = Opaque<"http.route">;
9
+ type Response = Opaque<"http.response">;
10
+ type Route = Opaque<"http.route">;
11
11
  /**
12
12
  * Perform an HTTP request
13
13
  *
@@ -15,17 +15,17 @@ declare global {
15
15
  * @param opts - request options
16
16
  * @returns HTTP response
17
17
  */
18
- function request(url: string, opts?: http.request.options): http.request.response;
18
+ function request(url: string, opts?: http.request.Options): http.request.Response;
19
19
  namespace request {
20
- type method = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | string;
20
+ type Method = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | string;
21
21
  /**
22
22
  * Options for http.request
23
23
  */
24
- interface options {
24
+ interface Options {
25
25
  /**
26
26
  * request method, defaults to `"GET"`
27
27
  */
28
- method?: http.request.method;
28
+ method?: http.request.Method;
29
29
  /**
30
30
  * request headers
31
31
  */
@@ -46,7 +46,7 @@ declare global {
46
46
  /**
47
47
  * Response returned by http.request
48
48
  */
49
- interface response {
49
+ interface Response {
50
50
  /**
51
51
  * response code
52
52
  */
@@ -66,11 +66,11 @@ declare global {
66
66
  }
67
67
  }
68
68
  namespace server {
69
- type handler = (request: http.server.request) => LuaMultiReturn<[http.response | number | undefined, LuaTable<string, string> | undefined, string | undefined]>;
69
+ type Handler = (request: http.server.Request) => LuaMultiReturn<[http.Response | number | undefined, LuaTable<string, string> | undefined, string | undefined]>;
70
70
  /**
71
71
  * HTTP server request
72
72
  */
73
- interface request {
73
+ interface Request {
74
74
  /**
75
75
  * route path parameter extracted from a path pattern
76
76
  */
@@ -104,7 +104,7 @@ declare global {
104
104
  * @param headers - HTTP response headers, a table from lower-case header names to header values
105
105
  * @returns HTTP response value, userdata
106
106
  */
107
- function external_file_response(path: string, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.response;
107
+ function external_file_response(path: string, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.Response;
108
108
  /**
109
109
  * Create HTTP response with a JSON value
110
110
  *
@@ -113,7 +113,7 @@ declare global {
113
113
  * @param headers - HTTP response headers, a table from lower-case header names to header values
114
114
  * @returns HTTP response value, userdata
115
115
  */
116
- function json_response(value: unknown, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.response;
116
+ function json_response(value: unknown, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.Response;
117
117
  /**
118
118
  * Create HTTP response that will stream the content of a resource defined by the resource path
119
119
  *
@@ -122,7 +122,7 @@ declare global {
122
122
  * @param headers - HTTP response headers, a table from lower-case header names to header values
123
123
  * @returns HTTP response value, userdata
124
124
  */
125
- function resource_response(resource_path: string, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.response;
125
+ function resource_response(resource_path: string, status?: number, headers?: LuaMap<string, string> | Record<string, string>): http.Response;
126
126
  /**
127
127
  * Create HTTP response
128
128
  *
@@ -131,7 +131,7 @@ declare global {
131
131
  * @param body - HTTP response body
132
132
  * @returns HTTP response value, userdata
133
133
  */
134
- function response(status?: number, headers?: LuaMap<string, string> | Record<string, string>, body?: string): http.response;
134
+ function response(status?: number, headers?: LuaMap<string, string> | Record<string, string>, body?: string): http.Response;
135
135
  }
136
136
  }
137
137
  }
@@ -10,7 +10,7 @@ declare global {
10
10
  * @param path - External file path, resolved against project root if relative
11
11
  * @returns image userdata
12
12
  */
13
- function load_file(path: string): editor.image;
13
+ function load_file(path: string): editor.Image;
14
14
  /**
15
15
  * Return the color of a pixel from a loaded image.
16
16
  * Coordinates are 1-based, with `1, 1` at the top-left corner.
@@ -19,7 +19,7 @@ declare global {
19
19
  * @param x - 1-based horizontal pixel coordinate. **⚠️ 1-based; passed to Defold unchanged.**
20
20
  * @param y - 1-based vertical pixel coordinate. **⚠️ 1-based; passed to Defold unchanged.**
21
21
  */
22
- function pixel(image: editor.image, x: number, y: number): LuaMultiReturn<[number, number, number, number]>;
22
+ function pixel(image: editor.Image, x: number, y: number): LuaMultiReturn<[number, number, number, number]>;
23
23
  /**
24
24
  * Iterate over pixels in a loaded image.
25
25
  * The iterator returns pixels row by row from top-left to bottom-right. Coordinates are 1-based.
@@ -35,13 +35,13 @@ declare global {
35
35
  * end
36
36
  * ```
37
37
  */
38
- function pixels(image: editor.image): (...args: unknown[]) => unknown;
38
+ function pixels(image: editor.Image): (...args: unknown[]) => unknown;
39
39
  /**
40
40
  * Return the width and height of a loaded image.
41
41
  *
42
42
  * @param image - image userdata returned by `image.load_file()`
43
43
  */
44
- function size(image: editor.image): LuaMultiReturn<[number, number]>;
44
+ function size(image: editor.Image): LuaMultiReturn<[number, number]>;
45
45
  }
46
46
  }
47
47
 
@@ -8,7 +8,7 @@ declare global {
8
8
  /**
9
9
  * Options for json.decode
10
10
  */
11
- interface options {
11
+ interface Options {
12
12
  /**
13
13
  * if true, decodes all JSON values in a string and returns an array
14
14
  */