@defold-typescript/types 0.53.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.
- package/dist/cli-runtime.js +8966 -0
- package/dist/identity-vocabulary.json +660 -0
- package/dist/src/index.d.ts +18 -0
- package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
- package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
- package/fixtures/defold-1.12.4/base_doc.json +758 -0
- package/fixtures/defold-1.12.4/bit_doc.json +404 -0
- package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
- package/fixtures/defold-1.12.4/camera_doc.json +664 -0
- package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
- package/fixtures/defold-1.12.4/crash_doc.json +497 -0
- package/fixtures/defold-1.12.4/debug_doc.json +410 -0
- package/fixtures/defold-1.12.4/factory_doc.json +219 -0
- package/fixtures/defold-1.12.4/font_doc.json +141 -0
- package/fixtures/defold-1.12.4/globals_doc.json +42 -0
- package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
- package/fixtures/defold-1.12.4/go_doc.json +1901 -0
- package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
- package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
- package/fixtures/defold-1.12.4/html5_doc.json +64 -0
- package/fixtures/defold-1.12.4/http_doc.json +66 -0
- package/fixtures/defold-1.12.4/image_doc.json +170 -0
- package/fixtures/defold-1.12.4/io_doc.json +399 -0
- package/fixtures/defold-1.12.4/json_doc.json +97 -0
- package/fixtures/defold-1.12.4/label_doc.json +220 -0
- package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
- package/fixtures/defold-1.12.4/math_doc.json +702 -0
- package/fixtures/defold-1.12.4/messages_doc.json +579 -0
- package/fixtures/defold-1.12.4/model_doc.json +315 -0
- package/fixtures/defold-1.12.4/msg_doc.json +137 -0
- package/fixtures/defold-1.12.4/os_doc.json +266 -0
- package/fixtures/defold-1.12.4/package_doc.json +139 -0
- package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
- package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
- package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
- package/fixtures/defold-1.12.4/render_doc.json +1167 -0
- package/fixtures/defold-1.12.4/resource_doc.json +762 -0
- package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
- package/fixtures/defold-1.12.4/sound_doc.json +582 -0
- package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
- package/fixtures/defold-1.12.4/string_doc.json +412 -0
- package/fixtures/defold-1.12.4/sys_doc.json +853 -0
- package/fixtures/defold-1.12.4/table_doc.json +166 -0
- package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
- package/fixtures/defold-1.12.4/timer_doc.json +153 -0
- package/fixtures/defold-1.12.4/types_doc.json +212 -0
- package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
- package/fixtures/defold-1.12.4/window_doc.json +388 -0
- package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.0/base_doc.json +758 -0
- package/fixtures/defold-1.13.0/bit_doc.json +404 -0
- package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.0/camera_doc.json +900 -0
- package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
- package/fixtures/defold-1.13.0/compute_doc.json +182 -0
- package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.0/crash_doc.json +497 -0
- package/fixtures/defold-1.13.0/debug_doc.json +410 -0
- package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
- package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.0/factory_doc.json +219 -0
- package/fixtures/defold-1.13.0/font_doc.json +141 -0
- package/fixtures/defold-1.13.0/globals_doc.json +42 -0
- package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
- package/fixtures/defold-1.13.0/go_doc.json +1989 -0
- package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.0/html5_doc.json +64 -0
- package/fixtures/defold-1.13.0/http_doc.json +66 -0
- package/fixtures/defold-1.13.0/image_doc.json +170 -0
- package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
- package/fixtures/defold-1.13.0/io_doc.json +399 -0
- package/fixtures/defold-1.13.0/json_doc.json +97 -0
- package/fixtures/defold-1.13.0/label_doc.json +220 -0
- package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.0/material_doc.json +238 -0
- package/fixtures/defold-1.13.0/math_doc.json +702 -0
- package/fixtures/defold-1.13.0/model_doc.json +412 -0
- package/fixtures/defold-1.13.0/msg_doc.json +137 -0
- package/fixtures/defold-1.13.0/os_doc.json +266 -0
- package/fixtures/defold-1.13.0/package_doc.json +139 -0
- package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.0/render_doc.json +1381 -0
- package/fixtures/defold-1.13.0/resource_doc.json +762 -0
- package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.0/sound_doc.json +582 -0
- package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.0/string_doc.json +412 -0
- package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.0/table_doc.json +166 -0
- package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.0/timer_doc.json +153 -0
- package/fixtures/defold-1.13.0/types_doc.json +212 -0
- package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.0/window_doc.json +388 -0
- package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
- package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
- package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
- package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
- package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
- package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
- package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
- package/fixtures/defold-1.13.1/base_doc.json +758 -0
- package/fixtures/defold-1.13.1/bit_doc.json +404 -0
- package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
- package/fixtures/defold-1.13.1/camera_doc.json +900 -0
- package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
- package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
- package/fixtures/defold-1.13.1/compute_doc.json +182 -0
- package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
- package/fixtures/defold-1.13.1/crash_doc.json +497 -0
- package/fixtures/defold-1.13.1/debug_doc.json +410 -0
- package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
- package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
- package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
- package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
- package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
- package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
- package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
- package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
- package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
- package/fixtures/defold-1.13.1/factory_doc.json +219 -0
- package/fixtures/defold-1.13.1/font_doc.json +141 -0
- package/fixtures/defold-1.13.1/globals_doc.json +42 -0
- package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
- package/fixtures/defold-1.13.1/go_doc.json +1989 -0
- package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
- package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
- package/fixtures/defold-1.13.1/html5_doc.json +64 -0
- package/fixtures/defold-1.13.1/http_doc.json +66 -0
- package/fixtures/defold-1.13.1/image_doc.json +170 -0
- package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
- package/fixtures/defold-1.13.1/io_doc.json +399 -0
- package/fixtures/defold-1.13.1/json_doc.json +97 -0
- package/fixtures/defold-1.13.1/label_doc.json +220 -0
- package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
- package/fixtures/defold-1.13.1/material_doc.json +238 -0
- package/fixtures/defold-1.13.1/math_doc.json +702 -0
- package/fixtures/defold-1.13.1/model_doc.json +412 -0
- package/fixtures/defold-1.13.1/msg_doc.json +137 -0
- package/fixtures/defold-1.13.1/os_doc.json +266 -0
- package/fixtures/defold-1.13.1/package_doc.json +139 -0
- package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
- package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
- package/fixtures/defold-1.13.1/render_doc.json +1381 -0
- package/fixtures/defold-1.13.1/resource_doc.json +762 -0
- package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
- package/fixtures/defold-1.13.1/sound_doc.json +582 -0
- package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
- package/fixtures/defold-1.13.1/string_doc.json +412 -0
- package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
- package/fixtures/defold-1.13.1/table_doc.json +166 -0
- package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
- package/fixtures/defold-1.13.1/timer_doc.json +153 -0
- package/fixtures/defold-1.13.1/types_doc.json +212 -0
- package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
- package/fixtures/defold-1.13.1/window_doc.json +388 -0
- package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
- package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
- package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.13.2/base_doc.json +759 -0
- package/fixtures/defold-1.13.2/bit_doc.json +405 -0
- package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
- package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
- package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.13.2/camera_doc.json +887 -0
- package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.13.2/compute_doc.json +183 -0
- package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
- package/fixtures/defold-1.13.2/crash_doc.json +483 -0
- package/fixtures/defold-1.13.2/debug_doc.json +411 -0
- package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
- package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
- package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
- package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
- package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.13.2/factory_doc.json +206 -0
- package/fixtures/defold-1.13.2/font_doc.json +230 -0
- package/fixtures/defold-1.13.2/globals_doc.json +64 -0
- package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
- package/fixtures/defold-1.13.2/go_doc.json +1789 -0
- package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
- package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
- package/fixtures/defold-1.13.2/html5_doc.json +65 -0
- package/fixtures/defold-1.13.2/http_doc.json +174 -0
- package/fixtures/defold-1.13.2/image_doc.json +298 -0
- package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
- package/fixtures/defold-1.13.2/io_doc.json +400 -0
- package/fixtures/defold-1.13.2/json_doc.json +140 -0
- package/fixtures/defold-1.13.2/label_doc.json +427 -0
- package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.13.2/material_doc.json +773 -0
- package/fixtures/defold-1.13.2/math_doc.json +703 -0
- package/fixtures/defold-1.13.2/model_doc.json +472 -0
- package/fixtures/defold-1.13.2/msg_doc.json +169 -0
- package/fixtures/defold-1.13.2/os_doc.json +269 -0
- package/fixtures/defold-1.13.2/package_doc.json +140 -0
- package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
- package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
- package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
- package/fixtures/defold-1.13.2/render_doc.json +1623 -0
- package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
- package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
- package/fixtures/defold-1.13.2/sound_doc.json +673 -0
- package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
- package/fixtures/defold-1.13.2/string_doc.json +413 -0
- package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
- package/fixtures/defold-1.13.2/table_doc.json +167 -0
- package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
- package/fixtures/defold-1.13.2/timer_doc.json +214 -0
- package/fixtures/defold-1.13.2/types_doc.json +213 -0
- package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
- package/fixtures/defold-1.13.2/window_doc.json +426 -0
- package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
- package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
- package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
- package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
- package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
- package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
- package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
- package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
- package/fixtures/defold-1.14.0/base_doc.json +759 -0
- package/fixtures/defold-1.14.0/bit_doc.json +405 -0
- package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
- package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
- package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
- package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
- package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
- package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
- package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
- package/fixtures/defold-1.14.0/camera_doc.json +887 -0
- package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
- package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
- package/fixtures/defold-1.14.0/compute_doc.json +183 -0
- package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
- package/fixtures/defold-1.14.0/crash_doc.json +483 -0
- package/fixtures/defold-1.14.0/debug_doc.json +411 -0
- package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
- package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
- package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
- package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
- package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
- package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
- package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
- package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
- package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
- package/fixtures/defold-1.14.0/factory_doc.json +206 -0
- package/fixtures/defold-1.14.0/font_doc.json +230 -0
- package/fixtures/defold-1.14.0/globals_doc.json +64 -0
- package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
- package/fixtures/defold-1.14.0/go_doc.json +1789 -0
- package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
- package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
- package/fixtures/defold-1.14.0/html5_doc.json +65 -0
- package/fixtures/defold-1.14.0/http_doc.json +174 -0
- package/fixtures/defold-1.14.0/image_doc.json +298 -0
- package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
- package/fixtures/defold-1.14.0/io_doc.json +400 -0
- package/fixtures/defold-1.14.0/json_doc.json +140 -0
- package/fixtures/defold-1.14.0/label_doc.json +427 -0
- package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
- package/fixtures/defold-1.14.0/material_doc.json +773 -0
- package/fixtures/defold-1.14.0/math_doc.json +703 -0
- package/fixtures/defold-1.14.0/model_doc.json +472 -0
- package/fixtures/defold-1.14.0/msg_doc.json +169 -0
- package/fixtures/defold-1.14.0/os_doc.json +269 -0
- package/fixtures/defold-1.14.0/package_doc.json +140 -0
- package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
- package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
- package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
- package/fixtures/defold-1.14.0/render_doc.json +1628 -0
- package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
- package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
- package/fixtures/defold-1.14.0/sound_doc.json +673 -0
- package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
- package/fixtures/defold-1.14.0/string_doc.json +413 -0
- package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
- package/fixtures/defold-1.14.0/table_doc.json +167 -0
- package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
- package/fixtures/defold-1.14.0/timer_doc.json +214 -0
- package/fixtures/defold-1.14.0/types_doc.json +213 -0
- package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
- package/fixtures/defold-1.14.0/window_doc.json +426 -0
- package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
- package/package.json +13 -6
- package/scripts/cli-runtime.ts +18 -0
- package/scripts/example-store-io.ts +2 -2
- package/scripts/extension-goldens.ts +9 -5
- package/scripts/generate-api-availability.ts +1 -1
- package/scripts/generate-api-signatures.ts +1 -1
- package/scripts/import-defold-release.ts +1 -1
- package/scripts/regen.ts +35 -9
- package/scripts/signature-store-fs.ts +37 -17
- package/scripts/sync-api-docs.ts +127 -20
- package/src/api-doc.ts +11 -4
- package/src/emit-dts.ts +115 -21
- package/src/index-slot-classifications.ts +75 -9
- package/src/index.ts +3 -1
- package/src/publish-dts.ts +16 -0
- package/src/script-api.ts +36 -38
- package/src/library-index-slot-classifications.ts +0 -332
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "ENUM",
|
|
5
|
+
"name": "window.DIMMING",
|
|
6
|
+
"brief": "Screen-dimming modes",
|
|
7
|
+
"description": "Screen-dimming modes",
|
|
8
|
+
"returnvalues": [],
|
|
9
|
+
"parameters": [],
|
|
10
|
+
"examples": "",
|
|
11
|
+
"replaces": "",
|
|
12
|
+
"error": "",
|
|
13
|
+
"tparams": [],
|
|
14
|
+
"members": [
|
|
15
|
+
{
|
|
16
|
+
"name": "window.DIMMING_OFF",
|
|
17
|
+
"doc": "dimming mode off Dimming mode is used to control whether or not a mobile device should dim the screen after a period without user interaction.",
|
|
18
|
+
"type": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "window.DIMMING_ON",
|
|
22
|
+
"doc": "dimming mode on Dimming mode is used to control whether or not a mobile device should dim the screen after a period without user interaction.",
|
|
23
|
+
"type": ""
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "window.DIMMING_UNKNOWN",
|
|
27
|
+
"doc": "dimming mode unknown Dimming mode is used to control whether or not a mobile device should dim the screen after a period without user interaction. This mode indicates that the dim mode can't be determined, or that the platform doesn't support dimming.",
|
|
28
|
+
"type": ""
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"notes": [],
|
|
32
|
+
"language": ""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "ENUM",
|
|
36
|
+
"name": "window.WINDOW_EVENT",
|
|
37
|
+
"brief": "Window events",
|
|
38
|
+
"description": "Window events",
|
|
39
|
+
"returnvalues": [],
|
|
40
|
+
"parameters": [],
|
|
41
|
+
"examples": "",
|
|
42
|
+
"replaces": "",
|
|
43
|
+
"error": "",
|
|
44
|
+
"tparams": [],
|
|
45
|
+
"members": [
|
|
46
|
+
{
|
|
47
|
+
"name": "window.WINDOW_EVENT_DEICONIFIED",
|
|
48
|
+
"doc": "deiconified window event <span class=\"icon-osx\"></span> <span class=\"icon-windows\"></span> <span class=\"icon-linux\"></span> This event is sent to a window event listener when the game window or app screen is restored after being iconified.",
|
|
49
|
+
"type": ""
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "window.WINDOW_EVENT_FOCUS_GAINED",
|
|
53
|
+
"doc": "focus gained window event This event is sent to a window event listener when the game window or app screen has gained focus. This event is also sent at game startup and the engine gives focus to the game.",
|
|
54
|
+
"type": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "window.WINDOW_EVENT_FOCUS_LOST",
|
|
58
|
+
"doc": "focus lost window event This event is sent to a window event listener when the game window or app screen has lost focus.",
|
|
59
|
+
"type": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "window.WINDOW_EVENT_ICONIFIED",
|
|
63
|
+
"doc": "iconify window event <span class=\"icon-osx\"></span> <span class=\"icon-windows\"></span> <span class=\"icon-linux\"></span> This event is sent to a window event listener when the game window or app screen is iconified (reduced to an application icon in a toolbar, application tray or similar).",
|
|
64
|
+
"type": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "window.WINDOW_EVENT_RESIZED",
|
|
68
|
+
"doc": "resized window event This event is sent to a window event listener when the game window or app screen is resized. The new size is passed along in the data field to the event listener.",
|
|
69
|
+
"type": ""
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"notes": [],
|
|
73
|
+
"language": ""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "STRUCT",
|
|
77
|
+
"name": "window.event_data",
|
|
78
|
+
"brief": "Window event data",
|
|
79
|
+
"description": "Width and height are present for <a href=\"/ref/window#window.WINDOW_EVENT_RESIZED\">window.WINDOW_EVENT_RESIZED</a> and\nabsent for other window events.",
|
|
80
|
+
"returnvalues": [],
|
|
81
|
+
"parameters": [],
|
|
82
|
+
"examples": "",
|
|
83
|
+
"replaces": "",
|
|
84
|
+
"error": "",
|
|
85
|
+
"tparams": [],
|
|
86
|
+
"members": [
|
|
87
|
+
{
|
|
88
|
+
"name": "width?",
|
|
89
|
+
"doc": "Window width after a resize.",
|
|
90
|
+
"type": "integer"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "height?",
|
|
94
|
+
"doc": "Window height after a resize.",
|
|
95
|
+
"type": "integer"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"notes": [],
|
|
99
|
+
"language": ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "STRUCT",
|
|
103
|
+
"name": "window.safe_area",
|
|
104
|
+
"brief": "Window safe-area data",
|
|
105
|
+
"description": "Window safe-area data",
|
|
106
|
+
"returnvalues": [],
|
|
107
|
+
"parameters": [],
|
|
108
|
+
"examples": "",
|
|
109
|
+
"replaces": "",
|
|
110
|
+
"error": "",
|
|
111
|
+
"tparams": [],
|
|
112
|
+
"members": [
|
|
113
|
+
{
|
|
114
|
+
"name": "x",
|
|
115
|
+
"doc": "Safe-area x-coordinate.",
|
|
116
|
+
"type": "integer"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "y",
|
|
120
|
+
"doc": "Safe-area y-coordinate.",
|
|
121
|
+
"type": "integer"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "width",
|
|
125
|
+
"doc": "Safe-area width.",
|
|
126
|
+
"type": "integer"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "height",
|
|
130
|
+
"doc": "Safe-area height.",
|
|
131
|
+
"type": "integer"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "inset_left",
|
|
135
|
+
"doc": "Inset from the left window edge.",
|
|
136
|
+
"type": "integer"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "inset_top",
|
|
140
|
+
"doc": "Inset from the top window edge.",
|
|
141
|
+
"type": "integer"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "inset_right",
|
|
145
|
+
"doc": "Inset from the right window edge.",
|
|
146
|
+
"type": "integer"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "inset_bottom",
|
|
150
|
+
"doc": "Inset from the bottom window edge.",
|
|
151
|
+
"type": "integer"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"notes": [],
|
|
155
|
+
"language": ""
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "FUNCTION",
|
|
159
|
+
"name": "window.set_listener",
|
|
160
|
+
"brief": "sets a window event listener",
|
|
161
|
+
"description": "Sets a window event listener. Only one window event listener can be set at a time.",
|
|
162
|
+
"returnvalues": [],
|
|
163
|
+
"parameters": [
|
|
164
|
+
{
|
|
165
|
+
"name": "callback",
|
|
166
|
+
"doc": "A callback which receives info about window events. Pass an empty function or <code>nil</code> if you no longer wish to receive callbacks.",
|
|
167
|
+
"types": [
|
|
168
|
+
"fun(self:script_instance, event:window.WINDOW_EVENT, data:window.event_data)",
|
|
169
|
+
"nil"
|
|
170
|
+
],
|
|
171
|
+
"is_optional": "False"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">window_callback</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">event</span><span class=\"p\">,</span> <span class=\"n\">data</span><span class=\"p\">)</span>\n <span class=\"kr\">if</span> <span class=\"n\">event</span> <span class=\"o\">==</span> <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">WINDOW_EVENT_FOCUS_LOST</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"window.WINDOW_EVENT_FOCUS_LOST"</span><span class=\"p\">)</span>\n <span class=\"kr\">elseif</span> <span class=\"n\">event</span> <span class=\"o\">==</span> <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">WINDOW_EVENT_FOCUS_GAINED</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"window.WINDOW_EVENT_FOCUS_GAINED"</span><span class=\"p\">)</span>\n <span class=\"kr\">elseif</span> <span class=\"n\">event</span> <span class=\"o\">==</span> <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">WINDOW_EVENT_ICONIFIED</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"window.WINDOW_EVENT_ICONIFIED"</span><span class=\"p\">)</span>\n <span class=\"kr\">elseif</span> <span class=\"n\">event</span> <span class=\"o\">==</span> <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">WINDOW_EVENT_DEICONIFIED</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"window.WINDOW_EVENT_DEICONIFIED"</span><span class=\"p\">)</span>\n <span class=\"kr\">elseif</span> <span class=\"n\">event</span> <span class=\"o\">==</span> <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">WINDOW_EVENT_RESIZED</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">"Window resized: "</span><span class=\"p\">,</span> <span class=\"n\">data</span><span class=\"p\">.</span><span class=\"n\">width</span><span class=\"p\">,</span> <span class=\"n\">data</span><span class=\"p\">.</span><span class=\"n\">height</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n\n<span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"n\">window</span><span class=\"p\">.</span><span class=\"n\">set_listener</span><span class=\"p\">(</span><span class=\"n\">window_callback</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
|
|
175
|
+
"replaces": "",
|
|
176
|
+
"error": "",
|
|
177
|
+
"tparams": [],
|
|
178
|
+
"members": [],
|
|
179
|
+
"notes": [],
|
|
180
|
+
"language": ""
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "FUNCTION",
|
|
184
|
+
"name": "window.set_mouse_lock",
|
|
185
|
+
"brief": "set the locking state for current mouse cursor",
|
|
186
|
+
"description": "Set the locking state for current mouse cursor on a PC platform.\nThis function locks or unlocks the mouse cursor to the center point of the window. While the cursor is locked,\nmouse position updates will still be sent to the scripts as usual.",
|
|
187
|
+
"returnvalues": [],
|
|
188
|
+
"parameters": [
|
|
189
|
+
{
|
|
190
|
+
"name": "flag",
|
|
191
|
+
"doc": "The lock state for the mouse cursor",
|
|
192
|
+
"types": ["boolean"],
|
|
193
|
+
"is_optional": "False"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"examples": "",
|
|
197
|
+
"replaces": "",
|
|
198
|
+
"error": "",
|
|
199
|
+
"tparams": [],
|
|
200
|
+
"members": [],
|
|
201
|
+
"notes": [],
|
|
202
|
+
"language": ""
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "FUNCTION",
|
|
206
|
+
"name": "window.set_dim_mode",
|
|
207
|
+
"brief": "set the mode for screen dimming",
|
|
208
|
+
"description": "<span class=\"icon-ios\"></span> <span class=\"icon-android\"></span> Sets the dimming mode on a mobile device.\nThe dimming mode specifies whether or not a mobile device should dim the screen after a period without user interaction. The dimming mode will only affect the mobile device while the game is in focus on the device, but not when the game is running in the background.\nThis function has no effect on platforms that does not support dimming.",
|
|
209
|
+
"returnvalues": [],
|
|
210
|
+
"parameters": [
|
|
211
|
+
{
|
|
212
|
+
"name": "mode",
|
|
213
|
+
"doc": "The mode for screen dimming",
|
|
214
|
+
"types": ["window.DIMMING"],
|
|
215
|
+
"is_optional": "False"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"examples": "",
|
|
219
|
+
"replaces": "",
|
|
220
|
+
"error": "",
|
|
221
|
+
"tparams": [],
|
|
222
|
+
"members": [],
|
|
223
|
+
"notes": [],
|
|
224
|
+
"language": ""
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"type": "FUNCTION",
|
|
228
|
+
"name": "window.get_dim_mode",
|
|
229
|
+
"brief": "get the mode for screen dimming",
|
|
230
|
+
"description": "<span class=\"icon-ios\"></span> <span class=\"icon-android\"></span> Returns the current dimming mode set on a mobile device.\nThe dimming mode specifies whether or not a mobile device should dim the screen after a period without user interaction.\nOn platforms that does not support dimming, <code>window.DIMMING_UNKNOWN</code> is always returned.",
|
|
231
|
+
"returnvalues": [
|
|
232
|
+
{
|
|
233
|
+
"name": "mode",
|
|
234
|
+
"doc": "The mode for screen dimming",
|
|
235
|
+
"types": ["window.DIMMING"]
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"parameters": [],
|
|
239
|
+
"examples": "",
|
|
240
|
+
"replaces": "",
|
|
241
|
+
"error": "",
|
|
242
|
+
"tparams": [],
|
|
243
|
+
"members": [],
|
|
244
|
+
"notes": [],
|
|
245
|
+
"language": ""
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "FUNCTION",
|
|
249
|
+
"name": "window.get_size",
|
|
250
|
+
"brief": "get the window size",
|
|
251
|
+
"description": "This returns the current window size (width and height).",
|
|
252
|
+
"returnvalues": [
|
|
253
|
+
{
|
|
254
|
+
"name": "width",
|
|
255
|
+
"doc": "The window width",
|
|
256
|
+
"types": ["integer"]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "height",
|
|
260
|
+
"doc": "The window height",
|
|
261
|
+
"types": ["integer"]
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"parameters": [],
|
|
265
|
+
"examples": "",
|
|
266
|
+
"replaces": "",
|
|
267
|
+
"error": "",
|
|
268
|
+
"tparams": [],
|
|
269
|
+
"members": [],
|
|
270
|
+
"notes": [],
|
|
271
|
+
"language": ""
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "FUNCTION",
|
|
275
|
+
"name": "window.get_safe_area",
|
|
276
|
+
"brief": "get the safe area",
|
|
277
|
+
"description": "This returns the safe area rectangle (x, y, width, height) and the inset\nvalues relative to the window edges. On platforms without a safe area,\nthis returns the full window size and zero insets.",
|
|
278
|
+
"returnvalues": [
|
|
279
|
+
{
|
|
280
|
+
"name": "safe_area",
|
|
281
|
+
"doc": "safe area data",
|
|
282
|
+
"types": ["window.safe_area"]
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"parameters": [],
|
|
286
|
+
"examples": "",
|
|
287
|
+
"replaces": "",
|
|
288
|
+
"error": "",
|
|
289
|
+
"tparams": [],
|
|
290
|
+
"members": [],
|
|
291
|
+
"notes": [],
|
|
292
|
+
"language": ""
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "FUNCTION",
|
|
296
|
+
"name": "window.get_mouse_lock",
|
|
297
|
+
"brief": "get the cursor lock state",
|
|
298
|
+
"description": "This returns the current lock state of the mouse cursor",
|
|
299
|
+
"returnvalues": [
|
|
300
|
+
{
|
|
301
|
+
"name": "state",
|
|
302
|
+
"doc": "The lock state",
|
|
303
|
+
"types": ["boolean"]
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"parameters": [],
|
|
307
|
+
"examples": "",
|
|
308
|
+
"replaces": "",
|
|
309
|
+
"error": "",
|
|
310
|
+
"tparams": [],
|
|
311
|
+
"members": [],
|
|
312
|
+
"notes": [],
|
|
313
|
+
"language": ""
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "FUNCTION",
|
|
317
|
+
"name": "window.get_display_scale",
|
|
318
|
+
"brief": "get the display scale",
|
|
319
|
+
"description": "This returns the content scale of the current display.",
|
|
320
|
+
"returnvalues": [
|
|
321
|
+
{
|
|
322
|
+
"name": "scale",
|
|
323
|
+
"doc": "The display scale",
|
|
324
|
+
"types": ["number"]
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"parameters": [],
|
|
328
|
+
"examples": "",
|
|
329
|
+
"replaces": "",
|
|
330
|
+
"error": "",
|
|
331
|
+
"tparams": [],
|
|
332
|
+
"members": [],
|
|
333
|
+
"notes": [],
|
|
334
|
+
"language": ""
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "FUNCTION",
|
|
338
|
+
"name": "window.set_title",
|
|
339
|
+
"brief": "set the title of the window",
|
|
340
|
+
"description": "Sets the window title. Works on desktop platforms.",
|
|
341
|
+
"returnvalues": [],
|
|
342
|
+
"parameters": [
|
|
343
|
+
{
|
|
344
|
+
"name": "title",
|
|
345
|
+
"doc": "The title, encoded as UTF-8",
|
|
346
|
+
"types": ["string"],
|
|
347
|
+
"is_optional": "False"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"examples": "",
|
|
351
|
+
"replaces": "",
|
|
352
|
+
"error": "",
|
|
353
|
+
"tparams": [],
|
|
354
|
+
"members": [],
|
|
355
|
+
"notes": [],
|
|
356
|
+
"language": ""
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "FUNCTION",
|
|
360
|
+
"name": "window.set_size",
|
|
361
|
+
"brief": "set the size of the window",
|
|
362
|
+
"description": "Sets the window size. Works on desktop platforms only.",
|
|
363
|
+
"returnvalues": [],
|
|
364
|
+
"parameters": [
|
|
365
|
+
{
|
|
366
|
+
"name": "width",
|
|
367
|
+
"doc": "Width of window",
|
|
368
|
+
"types": ["integer"],
|
|
369
|
+
"is_optional": "False"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "height",
|
|
373
|
+
"doc": "Height of window",
|
|
374
|
+
"types": ["integer"],
|
|
375
|
+
"is_optional": "False"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"examples": "",
|
|
379
|
+
"replaces": "",
|
|
380
|
+
"error": "",
|
|
381
|
+
"tparams": [],
|
|
382
|
+
"members": [],
|
|
383
|
+
"notes": [],
|
|
384
|
+
"language": ""
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "FUNCTION",
|
|
388
|
+
"name": "window.set_position",
|
|
389
|
+
"brief": "set the position of the window",
|
|
390
|
+
"description": "Sets the window position.",
|
|
391
|
+
"returnvalues": [],
|
|
392
|
+
"parameters": [
|
|
393
|
+
{
|
|
394
|
+
"name": "x",
|
|
395
|
+
"doc": "Horizontal position of window",
|
|
396
|
+
"types": ["integer"],
|
|
397
|
+
"is_optional": "False"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "y",
|
|
401
|
+
"doc": "Vertical position of window",
|
|
402
|
+
"types": ["integer"],
|
|
403
|
+
"is_optional": "False"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"examples": "",
|
|
407
|
+
"replaces": "",
|
|
408
|
+
"error": "",
|
|
409
|
+
"tparams": [],
|
|
410
|
+
"members": [],
|
|
411
|
+
"notes": [],
|
|
412
|
+
"language": ""
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"info": {
|
|
416
|
+
"namespace": "window",
|
|
417
|
+
"name": "Window",
|
|
418
|
+
"brief": "Window API documentation",
|
|
419
|
+
"description": "Functions and constants to access the window, window event listeners\nand screen dimming.",
|
|
420
|
+
"path": "engine/gamesys/src/gamesys/scripts/script_window.cpp",
|
|
421
|
+
"file": "",
|
|
422
|
+
"notes": [],
|
|
423
|
+
"language": "Lua"
|
|
424
|
+
},
|
|
425
|
+
"format_version": 2
|
|
426
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "FUNCTION",
|
|
5
|
+
"name": "zlib.inflate",
|
|
6
|
+
"brief": "Inflate (decompress) a buffer",
|
|
7
|
+
"description": "A lua error is raised is on error",
|
|
8
|
+
"returnvalues": [
|
|
9
|
+
{
|
|
10
|
+
"name": "buf",
|
|
11
|
+
"doc": "inflated buffer",
|
|
12
|
+
"types": ["string"]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"parameters": [
|
|
16
|
+
{
|
|
17
|
+
"name": "buf",
|
|
18
|
+
"doc": "buffer to inflate",
|
|
19
|
+
"types": ["string"],
|
|
20
|
+
"is_optional": "False"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">data</span> <span class=\"o\">=</span> <span class=\"s2\">"</span><span class=\"se\">\\120\\94\\11\\201\\200\\44\\86\\0\\162\\68\\133\\226\\146\\162\\204\\188\\116\\133\\242\\204\\146\\12\\133\\210\\188\\228\\252\\220\\130\\162\\212\\226\\226\\212\\20\\133\\148\\196\\146\\68\\61\\0\\44\\67\\14\\201</span><span class=\"s2\">"</span>\n<span class=\"kd\">local</span> <span class=\"n\">uncompressed_data</span> <span class=\"o\">=</span> <span class=\"n\">zlib</span><span class=\"p\">.</span><span class=\"n\">inflate</span><span class=\"p\">(</span><span class=\"n\">data</span><span class=\"p\">)</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">uncompressed_data</span><span class=\"p\">)</span> <span class=\"c1\">--> This is a string with uncompressed data.</span>\n</code></pre></div>",
|
|
24
|
+
"replaces": "",
|
|
25
|
+
"error": "",
|
|
26
|
+
"tparams": [],
|
|
27
|
+
"members": [],
|
|
28
|
+
"notes": [],
|
|
29
|
+
"language": ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "FUNCTION",
|
|
33
|
+
"name": "zlib.deflate",
|
|
34
|
+
"brief": "Deflate (compress) a buffer",
|
|
35
|
+
"description": "A lua error is raised is on error",
|
|
36
|
+
"returnvalues": [
|
|
37
|
+
{
|
|
38
|
+
"name": "buf",
|
|
39
|
+
"doc": "deflated buffer",
|
|
40
|
+
"types": ["string"]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"parameters": [
|
|
44
|
+
{
|
|
45
|
+
"name": "buf",
|
|
46
|
+
"doc": "buffer to deflate",
|
|
47
|
+
"types": ["string"],
|
|
48
|
+
"is_optional": "False"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">data</span> <span class=\"o\">=</span> <span class=\"s2\">"This is a string with uncompressed data."</span>\n<span class=\"kd\">local</span> <span class=\"n\">compressed_data</span> <span class=\"o\">=</span> <span class=\"n\">zlib</span><span class=\"p\">.</span><span class=\"n\">deflate</span><span class=\"p\">(</span><span class=\"n\">data</span><span class=\"p\">)</span>\n<span class=\"kd\">local</span> <span class=\"n\">s</span> <span class=\"o\">=</span> <span class=\"s2\">""</span>\n<span class=\"kr\">for</span> <span class=\"n\">c</span> <span class=\"kr\">in</span> <span class=\"nb\">string.gmatch</span><span class=\"p\">(</span><span class=\"n\">compressed_data</span><span class=\"p\">,</span> <span class=\"s2\">"."</span><span class=\"p\">)</span> <span class=\"kr\">do</span>\n <span class=\"n\">s</span> <span class=\"o\">=</span> <span class=\"n\">s</span> <span class=\"o\">..</span> <span class=\"s1\">'</span><span class=\"se\">\\\\</span><span class=\"s1\">'</span> <span class=\"o\">..</span> <span class=\"nb\">string.byte</span><span class=\"p\">(</span><span class=\"n\">c</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n<span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"n\">s</span><span class=\"p\">)</span> <span class=\"c1\">--> \\120\\94\\11\\201\\200\\44\\86\\0\\162\\68\\133\\226\\146\\162 ...</span>\n</code></pre></div>",
|
|
52
|
+
"replaces": "",
|
|
53
|
+
"error": "",
|
|
54
|
+
"tparams": [],
|
|
55
|
+
"members": [],
|
|
56
|
+
"notes": [],
|
|
57
|
+
"language": ""
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"info": {
|
|
61
|
+
"namespace": "zlib",
|
|
62
|
+
"name": "Zlib",
|
|
63
|
+
"brief": "Zlib compression API documentation",
|
|
64
|
+
"description": "Functions for compression and decompression of string buffers.",
|
|
65
|
+
"path": "engine/script/src/script_zlib.cpp",
|
|
66
|
+
"file": "",
|
|
67
|
+
"notes": [],
|
|
68
|
+
"language": "Lua"
|
|
69
|
+
},
|
|
70
|
+
"format_version": 2
|
|
71
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defold-typescript/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "TypeScript types for the Defold engine's Lua APIs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -57,6 +57,11 @@
|
|
|
57
57
|
"./hsm/defold": {
|
|
58
58
|
"types": "./hsm/defold.d.ts"
|
|
59
59
|
},
|
|
60
|
+
"./cli-runtime": {
|
|
61
|
+
"types": "./scripts/cli-runtime.ts",
|
|
62
|
+
"bun": "./scripts/cli-runtime.ts",
|
|
63
|
+
"default": "./dist/cli-runtime.js"
|
|
64
|
+
},
|
|
60
65
|
"./api-availability.json": "./api-availability.json",
|
|
61
66
|
"./api-signatures.json": "./api-signatures.json",
|
|
62
67
|
"./url-parameters.json": "./url-parameters.json",
|
|
@@ -74,11 +79,12 @@
|
|
|
74
79
|
"api-signatures.json",
|
|
75
80
|
"url-parameters.json",
|
|
76
81
|
"index.d.ts",
|
|
82
|
+
"dist/cli-runtime.js",
|
|
77
83
|
"fixtures/messages_doc.json",
|
|
78
|
-
"fixtures/defold
|
|
79
|
-
"!fixtures/defold-*/engine-bindings",
|
|
80
|
-
"!fixtures/defold-*/engine-evidence",
|
|
81
|
-
"!fixtures/defold-*/annotations",
|
|
84
|
+
"fixtures/defold-*/**",
|
|
85
|
+
"!fixtures/defold-*/engine-bindings/**",
|
|
86
|
+
"!fixtures/defold-*/engine-evidence/**",
|
|
87
|
+
"!fixtures/defold-*/annotations/**",
|
|
82
88
|
"examples/translations.json",
|
|
83
89
|
"!src/**/*.test.ts",
|
|
84
90
|
"!scripts/**/*.test.ts",
|
|
@@ -111,7 +117,8 @@
|
|
|
111
117
|
"access": "public"
|
|
112
118
|
},
|
|
113
119
|
"scripts": {
|
|
114
|
-
"build": "tsc -p tsconfig.build.json",
|
|
120
|
+
"build": "tsc -p tsconfig.build.json && bun run build:cli-runtime",
|
|
121
|
+
"build:cli-runtime": "bun build scripts/cli-runtime.ts --target=node --format=esm --packages=external --outdir=dist",
|
|
115
122
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
116
123
|
"regen": "bun scripts/regen.ts",
|
|
117
124
|
"generate-api-availability": "bun scripts/generate-api-availability.ts",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// The one entry the CLI loads the generator through, published as
|
|
2
|
+
// `@defold-typescript/types/cli-runtime`. Node's loader refuses a `.ts` file
|
|
3
|
+
// under `node_modules` and reads a bare Windows path as a URL scheme, so the
|
|
4
|
+
// CLI never imports these scripts by path: Bun resolves the export's `bun`
|
|
5
|
+
// condition to this source, Node its `default` to the bundle built beside it
|
|
6
|
+
// (`dist/cli-runtime.js`, `bun run build:cli-runtime`). Anything the CLI needs
|
|
7
|
+
// at runtime is added here, never imported by path.
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
buildVersionedSurfaceFiles,
|
|
11
|
+
materializeVersionedSurface,
|
|
12
|
+
RESTRICTED_SRC_AUGMENTATIONS,
|
|
13
|
+
RUNTIME_KIND_MANIFEST,
|
|
14
|
+
renderMaterializedKindIndex,
|
|
15
|
+
targetKindManifest,
|
|
16
|
+
} from "./materialize-version";
|
|
17
|
+
export { generateGlobalTableDeclaration, generateModuleDeclaration } from "./regen";
|
|
18
|
+
export { readZip, scriptApiToFixtureJson, type ZipAccessor } from "./sync-api-docs";
|
|
@@ -5,8 +5,8 @@ import type { ProseLuaKeepStore, TranslationStore } from "../src/example-store";
|
|
|
5
5
|
// Build-time only: lives under `scripts/` (never reachable from the shipped
|
|
6
6
|
// `src/index.ts` graph) so its `node:fs` import cannot leak into a consumer's
|
|
7
7
|
// typecheck. `src/example-store.ts` stays pure for exactly that reason.
|
|
8
|
-
const TRANSLATIONS_PATH = resolve(import.meta.
|
|
9
|
-
const PROSE_LUA_KEPT_PATH = resolve(import.meta.
|
|
8
|
+
const TRANSLATIONS_PATH = resolve(import.meta.dirname, "..", "examples", "translations.json");
|
|
9
|
+
const PROSE_LUA_KEPT_PATH = resolve(import.meta.dirname, "..", "examples", "prose-lua-kept.json");
|
|
10
10
|
|
|
11
11
|
export function loadTranslations(path: string = TRANSLATIONS_PATH): TranslationStore {
|
|
12
12
|
let raw: string;
|
|
@@ -10,15 +10,19 @@ import type { ModuleManifestEntry } from "./regen";
|
|
|
10
10
|
// break every installed `resolve`.
|
|
11
11
|
export const EXTENSION_GOLDENS_DIR = "extension-goldens";
|
|
12
12
|
|
|
13
|
-
const PACKAGE_ROOT = resolve(import.meta.
|
|
13
|
+
const PACKAGE_ROOT = resolve(import.meta.dirname, "..");
|
|
14
14
|
const EXTENSION_GOLDEN_NAMESPACES = ["iac", "iap", "push", "webview"] as const;
|
|
15
15
|
|
|
16
|
+
// Each golden's doc is the conversion of the extension's `.script_api` at its
|
|
17
|
+
// `packages/library-types/defold-extensions.json` pin, the same JSON the
|
|
18
|
+
// Libraries pages render, so a golden carries the namespace's constants, optional
|
|
19
|
+
// slots and callback arguments exactly as `resolve` would emit them for a project.
|
|
20
|
+
const EXTENSION_DOCS_DIR = resolve(PACKAGE_ROOT, "../library-types/defold-extensions/api-doc");
|
|
21
|
+
|
|
16
22
|
export const EXTENSION_GOLDEN_MANIFEST: readonly ModuleManifestEntry[] =
|
|
17
23
|
EXTENSION_GOLDEN_NAMESPACES.map((namespace) => ({
|
|
18
24
|
namespace,
|
|
19
|
-
doc: JSON.parse(
|
|
20
|
-
readFileSync(resolve(PACKAGE_ROOT, "fixtures", `${namespace}_doc.json`), "utf8"),
|
|
21
|
-
),
|
|
25
|
+
doc: JSON.parse(readFileSync(resolve(EXTENSION_DOCS_DIR, `${namespace}.json`), "utf8")),
|
|
22
26
|
outFile: `${namespace}.d.ts`,
|
|
23
|
-
indexBaseSource: { pages: [] },
|
|
27
|
+
indexBaseSource: { pages: [], classifications: new Map() },
|
|
24
28
|
}));
|
|
@@ -30,7 +30,7 @@ import { splitTopLevel } from "../src/luals-type-expr";
|
|
|
30
30
|
import { type ApiTarget, loadApiTargets, loadTargetModules } from "./regen";
|
|
31
31
|
import { compareVersions, versionOf } from "./target-version";
|
|
32
32
|
|
|
33
|
-
const PACKAGE_ROOT = resolve(import.meta.
|
|
33
|
+
const PACKAGE_ROOT = resolve(import.meta.dirname, "..");
|
|
34
34
|
const MIGRATIONS_PATH = resolve(PACKAGE_ROOT, "api-migrations.json");
|
|
35
35
|
const AVAILABILITY_PATH = resolve(PACKAGE_ROOT, "api-availability.json");
|
|
36
36
|
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { loadSignatureFile } from "./signature-store-fs";
|
|
15
15
|
import { versionOf } from "./target-version";
|
|
16
16
|
|
|
17
|
-
const PACKAGE_ROOT = resolve(import.meta.
|
|
17
|
+
const PACKAGE_ROOT = resolve(import.meta.dirname, "..");
|
|
18
18
|
const SIGNATURES_PATH = resolve(PACKAGE_ROOT, "api-signatures.json");
|
|
19
19
|
|
|
20
20
|
export interface SignaturesArtifact {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
|
|
18
18
|
const EXACT_VERSION = /^\d+\.\d+\.\d+$/;
|
|
19
19
|
const DECLARED_NAME_KINDS = new Set(["CONSTANT", "ENUM", "STRUCT", "TYPEDEF", "CLASS"]);
|
|
20
|
-
const PACKAGE_ROOT = resolve(import.meta.
|
|
20
|
+
const PACKAGE_ROOT = resolve(import.meta.dirname, "..");
|
|
21
21
|
|
|
22
22
|
// Editor-scripting namespaces are mapped, but not by `api-targets.json`: they
|
|
23
23
|
// emit through `EDITOR_MODULE_MANIFEST` rather than the runtime module set the
|