@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,400 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "FUNCTION",
|
|
5
|
+
"name": "io.close",
|
|
6
|
+
"brief": "closes a file",
|
|
7
|
+
"description": "Equivalent to <code>file:close()</code>.\nWithout a file, closes the default output file.",
|
|
8
|
+
"returnvalues": [],
|
|
9
|
+
"parameters": [
|
|
10
|
+
{
|
|
11
|
+
"name": "file",
|
|
12
|
+
"doc": "",
|
|
13
|
+
"types": ["file", "nil"],
|
|
14
|
+
"is_optional": "True"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"examples": "",
|
|
18
|
+
"replaces": "",
|
|
19
|
+
"error": "",
|
|
20
|
+
"tparams": [],
|
|
21
|
+
"members": [],
|
|
22
|
+
"notes": [],
|
|
23
|
+
"language": ""
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "FUNCTION",
|
|
27
|
+
"name": "io.flush",
|
|
28
|
+
"brief": "flushes outstanding data to disk for the default output file",
|
|
29
|
+
"description": "Equivalent to <code>file:flush</code> over the default output file.",
|
|
30
|
+
"returnvalues": [],
|
|
31
|
+
"parameters": [],
|
|
32
|
+
"examples": "",
|
|
33
|
+
"replaces": "",
|
|
34
|
+
"error": "",
|
|
35
|
+
"tparams": [],
|
|
36
|
+
"members": [],
|
|
37
|
+
"notes": [],
|
|
38
|
+
"language": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "FUNCTION",
|
|
42
|
+
"name": "io.input",
|
|
43
|
+
"brief": "opens filename for input in text mode",
|
|
44
|
+
"description": "When called with a file name, it opens the named file (in text mode),\nand sets its handle as the default input file.\nWhen called with a file handle,\nit simply sets this file handle as the default input file.\nWhen called without parameters,\nit returns the current default input file.\nIn case of errors this function raises the error,\ninstead of returning an error code.",
|
|
45
|
+
"returnvalues": [],
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "file",
|
|
49
|
+
"doc": "",
|
|
50
|
+
"types": ["string", "file"],
|
|
51
|
+
"is_optional": "True"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"examples": "",
|
|
55
|
+
"replaces": "",
|
|
56
|
+
"error": "",
|
|
57
|
+
"tparams": [],
|
|
58
|
+
"members": [],
|
|
59
|
+
"notes": [],
|
|
60
|
+
"language": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "FUNCTION",
|
|
64
|
+
"name": "io.lines",
|
|
65
|
+
"brief": "returns an iterator function for reading a named file line-by-line",
|
|
66
|
+
"description": "Opens the given file name in read mode\nand returns an iterator function that,\neach time it is called,\nreturns a new line from the file.\nTherefore, the construction\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">for</span> <span class=\"n\">line</span> <span class=\"kr\">in</span> <span class=\"nb\">io.lines</span><span class=\"p\">(</span><span class=\"n\">filename</span><span class=\"p\">)</span> <span class=\"kr\">do</span> <span class=\"n\">body</span> <span class=\"kr\">end</span>\n</code></pre></div>\n\nwill iterate over all lines of the file.\nWhen the iterator function detects the end of file,\nit returns <span class=\"type\"> nil</span> (to finish the loop) and automatically closes the file.\nThe call <code>io.lines()</code> (with no file name) is equivalent\nto <code>io.input():lines()</code>;\nthat is, it iterates over the lines of the default input file.\nIn this case it does not close the file when the loop ends.",
|
|
67
|
+
"returnvalues": [],
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "filename",
|
|
71
|
+
"doc": "",
|
|
72
|
+
"types": ["string"],
|
|
73
|
+
"is_optional": "True"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"examples": "",
|
|
77
|
+
"replaces": "",
|
|
78
|
+
"error": "",
|
|
79
|
+
"tparams": [],
|
|
80
|
+
"members": [],
|
|
81
|
+
"notes": [],
|
|
82
|
+
"language": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "FUNCTION",
|
|
86
|
+
"name": "io.open",
|
|
87
|
+
"brief": "opens a file",
|
|
88
|
+
"description": "This function opens a file,\nin the mode specified in the string mode.\nIt returns a new file handle,\nor, in case of errors, <span class=\"type\"> nil</span> plus an error message.\nThe mode string can be any of the following:\n<dl>\n<dt>\"r\"</dt>\n<dd>read mode (the default);</dd>\n<dt>\"w\"</dt>\n<dd>write mode;</dd>\n<dt>\"a\"</dt>\n<dd>append mode;</dd>\n<dt>\"r+\"</dt>\n<dd>update mode, all previous data is preserved;</dd>\n<dt>\"w+\"</dt>\n<dd>update mode, all previous data is erased;</dd>\n<dt>\"a+\"</dt>\n<dd>append update mode, previous data is preserved,\n writing is only allowed at the end of file.</dd>\n</dl>\nThe mode string can also have a 'b' at the end,\nwhich is needed in some systems to open the file in binary mode.\nThis string is exactly what is used in the\nstandard C function fopen.",
|
|
89
|
+
"returnvalues": [],
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "filename",
|
|
93
|
+
"doc": "",
|
|
94
|
+
"types": ["string"],
|
|
95
|
+
"is_optional": "False"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "mode",
|
|
99
|
+
"doc": "",
|
|
100
|
+
"types": ["string"],
|
|
101
|
+
"is_optional": "True"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"examples": "",
|
|
105
|
+
"replaces": "",
|
|
106
|
+
"error": "",
|
|
107
|
+
"tparams": [],
|
|
108
|
+
"members": [],
|
|
109
|
+
"notes": [],
|
|
110
|
+
"language": ""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "FUNCTION",
|
|
114
|
+
"name": "io.output",
|
|
115
|
+
"brief": "opens a file for output",
|
|
116
|
+
"description": "Similar to io.input, but operates over the default output file.",
|
|
117
|
+
"returnvalues": [],
|
|
118
|
+
"parameters": [
|
|
119
|
+
{
|
|
120
|
+
"name": "file",
|
|
121
|
+
"doc": "",
|
|
122
|
+
"types": ["file"],
|
|
123
|
+
"is_optional": "True"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"examples": "",
|
|
127
|
+
"replaces": "",
|
|
128
|
+
"error": "",
|
|
129
|
+
"tparams": [],
|
|
130
|
+
"members": [],
|
|
131
|
+
"notes": [],
|
|
132
|
+
"language": ""
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "FUNCTION",
|
|
136
|
+
"name": "io.popen",
|
|
137
|
+
"brief": "creates a pipe and executes a command",
|
|
138
|
+
"description": "Starts program prog in a separated process and returns\na file handle that you can use to read data from this program\n(if mode is <code>\"r\"</code>, the default)\nor to write data to this program\n(if mode is <code>\"w\"</code>).\nThis function is system dependent and is not available\non all platforms.",
|
|
139
|
+
"returnvalues": [],
|
|
140
|
+
"parameters": [
|
|
141
|
+
{
|
|
142
|
+
"name": "prog",
|
|
143
|
+
"doc": "",
|
|
144
|
+
"types": ["string"],
|
|
145
|
+
"is_optional": "False"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "mode",
|
|
149
|
+
"doc": "",
|
|
150
|
+
"types": ["string"],
|
|
151
|
+
"is_optional": "True"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"examples": "",
|
|
155
|
+
"replaces": "",
|
|
156
|
+
"error": "",
|
|
157
|
+
"tparams": [],
|
|
158
|
+
"members": [],
|
|
159
|
+
"notes": [],
|
|
160
|
+
"language": ""
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "FUNCTION",
|
|
164
|
+
"name": "io.read",
|
|
165
|
+
"brief": "reads from the default input file",
|
|
166
|
+
"description": "Equivalent to <code>io.input():read</code>.",
|
|
167
|
+
"returnvalues": [],
|
|
168
|
+
"parameters": [
|
|
169
|
+
{
|
|
170
|
+
"name": "...",
|
|
171
|
+
"doc": "",
|
|
172
|
+
"types": ["any"],
|
|
173
|
+
"is_optional": "False"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"examples": "",
|
|
177
|
+
"replaces": "",
|
|
178
|
+
"error": "",
|
|
179
|
+
"tparams": [],
|
|
180
|
+
"members": [],
|
|
181
|
+
"notes": [],
|
|
182
|
+
"language": ""
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "FUNCTION",
|
|
186
|
+
"name": "io.tmpfile",
|
|
187
|
+
"brief": "returns a handle to a temporary file",
|
|
188
|
+
"description": "Returns a handle for a temporary file.\nThis file is opened in update mode\nand it is automatically removed when the program ends.",
|
|
189
|
+
"returnvalues": [],
|
|
190
|
+
"parameters": [],
|
|
191
|
+
"examples": "",
|
|
192
|
+
"replaces": "",
|
|
193
|
+
"error": "",
|
|
194
|
+
"tparams": [],
|
|
195
|
+
"members": [],
|
|
196
|
+
"notes": [],
|
|
197
|
+
"language": ""
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "FUNCTION",
|
|
201
|
+
"name": "io.type",
|
|
202
|
+
"brief": "returns type of file handle",
|
|
203
|
+
"description": "Checks whether obj is a valid file handle.\nReturns the string <code>\"file\"</code> if obj is an open file handle,\n<code>\"closed file\"</code> if obj is a closed file handle,\nor <span class=\"type\"> nil</span> if obj is not a file handle.",
|
|
204
|
+
"returnvalues": [],
|
|
205
|
+
"parameters": [
|
|
206
|
+
{
|
|
207
|
+
"name": "obj",
|
|
208
|
+
"doc": "",
|
|
209
|
+
"types": ["file"],
|
|
210
|
+
"is_optional": "False"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"examples": "",
|
|
214
|
+
"replaces": "",
|
|
215
|
+
"error": "",
|
|
216
|
+
"tparams": [],
|
|
217
|
+
"members": [],
|
|
218
|
+
"notes": [],
|
|
219
|
+
"language": ""
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "FUNCTION",
|
|
223
|
+
"name": "io.write",
|
|
224
|
+
"brief": "writes to the default output file",
|
|
225
|
+
"description": "Equivalent to <code>io.output():write</code>.",
|
|
226
|
+
"returnvalues": [],
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"name": "...",
|
|
230
|
+
"doc": "",
|
|
231
|
+
"types": ["any"],
|
|
232
|
+
"is_optional": "False"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"examples": "",
|
|
236
|
+
"replaces": "",
|
|
237
|
+
"error": "",
|
|
238
|
+
"tparams": [],
|
|
239
|
+
"members": [],
|
|
240
|
+
"notes": [],
|
|
241
|
+
"language": ""
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "FUNCTION",
|
|
245
|
+
"name": "file:close",
|
|
246
|
+
"brief": "closes a file",
|
|
247
|
+
"description": "Closes file.\nNote that files are automatically closed when\ntheir handles are garbage collected,\nbut that takes an unpredictable amount of time to happen.",
|
|
248
|
+
"returnvalues": [],
|
|
249
|
+
"parameters": [],
|
|
250
|
+
"examples": "",
|
|
251
|
+
"replaces": "",
|
|
252
|
+
"error": "",
|
|
253
|
+
"tparams": [],
|
|
254
|
+
"members": [],
|
|
255
|
+
"notes": [],
|
|
256
|
+
"language": ""
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "FUNCTION",
|
|
260
|
+
"name": "file:flush",
|
|
261
|
+
"brief": "flushes outstanding data to disk",
|
|
262
|
+
"description": "Saves any written data to file.",
|
|
263
|
+
"returnvalues": [],
|
|
264
|
+
"parameters": [],
|
|
265
|
+
"examples": "",
|
|
266
|
+
"replaces": "",
|
|
267
|
+
"error": "",
|
|
268
|
+
"tparams": [],
|
|
269
|
+
"members": [],
|
|
270
|
+
"notes": [],
|
|
271
|
+
"language": ""
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "FUNCTION",
|
|
275
|
+
"name": "file:lines",
|
|
276
|
+
"brief": "returns an iterator function for reading the file line-by-line",
|
|
277
|
+
"description": "Returns an iterator function that,\neach time it is called,\nreturns a new line from the file.\nTherefore, the construction\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">for</span> <span class=\"n\">line</span> <span class=\"kr\">in</span> <span class=\"n\">file</span><span class=\"p\">:</span><span class=\"n\">lines</span><span class=\"p\">()</span> <span class=\"kr\">do</span> <span class=\"n\">body</span> <span class=\"kr\">end</span>\n</code></pre></div>\n\nwill iterate over all lines of the file.\n(Unlike io.lines, this function does not close the file\nwhen the loop ends.)",
|
|
278
|
+
"returnvalues": [],
|
|
279
|
+
"parameters": [],
|
|
280
|
+
"examples": "",
|
|
281
|
+
"replaces": "",
|
|
282
|
+
"error": "",
|
|
283
|
+
"tparams": [],
|
|
284
|
+
"members": [],
|
|
285
|
+
"notes": [],
|
|
286
|
+
"language": ""
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "FUNCTION",
|
|
290
|
+
"name": "file:read",
|
|
291
|
+
"brief": "reads the file according to the specified formats",
|
|
292
|
+
"description": "Reads the file file,\naccording to the given formats, which specify what to read.\nFor each format,\nthe function returns a string (or a number) with the characters read,\nor <span class=\"type\"> nil</span> if it cannot read data with the specified format.\nWhen called without formats,\nit uses a default format that reads the entire next line\n(see below).\nThe available formats are\n<dl>\n<dt>\"*n\"</dt>\n<dd>reads a number;\nthis is the only format that returns a number instead of a string.</dd>\n<dt>\"*a\"</dt>\n<dd>reads the whole file, starting at the current position.\nOn end of file, it returns the empty string.</dd>\n<dt>\"*l\"</dt>\n<dd>reads the next line (skipping the end of line),\nreturning <span class=\"type\"> nil</span> on end of file.\nThis is the default format.</dd>\n<dt><em>number</em></dt>\n<dd>reads a string with up to this number of characters,\nreturning <span class=\"type\"> nil</span> on end of file.\nIf number is zero,\nit reads nothing and returns an empty string,\nor <span class=\"type\"> nil</span> on end of file.</dd>\n</dl>",
|
|
293
|
+
"returnvalues": [],
|
|
294
|
+
"parameters": [
|
|
295
|
+
{
|
|
296
|
+
"name": "...",
|
|
297
|
+
"doc": "",
|
|
298
|
+
"types": ["any"],
|
|
299
|
+
"is_optional": "False"
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"examples": "",
|
|
303
|
+
"replaces": "",
|
|
304
|
+
"error": "",
|
|
305
|
+
"tparams": [],
|
|
306
|
+
"members": [],
|
|
307
|
+
"notes": [],
|
|
308
|
+
"language": ""
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "FUNCTION",
|
|
312
|
+
"name": "file:seek",
|
|
313
|
+
"brief": "sets and gets the current file position",
|
|
314
|
+
"description": "Sets and gets the file position,\nmeasured from the beginning of the file,\nto the position given by offset plus a base\nspecified by the string whence, as follows:\n<dl>\n<dt>\"set\"</dt>\n<dd>base is position 0 (beginning of the file);</dd>\n<dt>\"cur\"</dt>\n<dd>base is current position;</dd>\n<dt>\"end\"</dt>\n<dd>base is end of file;</dd>\n</dl>\nIn case of success, function seek returns the final file position,\nmeasured in bytes from the beginning of the file.\nIf this function fails, it returns <span class=\"type\"> nil</span>,\nplus a string describing the error.\nThe default value for whence is <code>\"cur\"</code>,\nand for offset is 0.\nTherefore, the call <code>file:seek()</code> returns the current\nfile position, without changing it;\nthe call <code>file:seek(\"set\")</code> sets the position to the\nbeginning of the file (and returns 0);\nand the call <code>file:seek(\"end\")</code> sets the position to the\nend of the file, and returns its size.",
|
|
315
|
+
"returnvalues": [],
|
|
316
|
+
"parameters": [
|
|
317
|
+
{
|
|
318
|
+
"name": "whence",
|
|
319
|
+
"doc": "",
|
|
320
|
+
"types": ["string"],
|
|
321
|
+
"is_optional": "True"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "offset",
|
|
325
|
+
"doc": "",
|
|
326
|
+
"types": ["number"],
|
|
327
|
+
"is_optional": "True"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"examples": "",
|
|
331
|
+
"replaces": "",
|
|
332
|
+
"error": "",
|
|
333
|
+
"tparams": [],
|
|
334
|
+
"members": [],
|
|
335
|
+
"notes": [],
|
|
336
|
+
"language": ""
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"type": "FUNCTION",
|
|
340
|
+
"name": "file:setvbuf",
|
|
341
|
+
"brief": "sets the buffering mode for an output file",
|
|
342
|
+
"description": "Sets the buffering mode for an output file.\nThere are three available modes:\n<dl>\n<dt>\"no\"</dt>\n<dd>no buffering; the result of any output operation appears immediately.</dd>\n<dt>\"full\"</dt>\n<dd>full buffering; output operation is performed only\nwhen the buffer is full (or when you explicitly <code>flush</code> the file\n).</dd>\n<dt>\"line\"</dt>\n<dd>line buffering; output is buffered until a newline is output\nor there is any input from some special files\n(such as a terminal device).</dd>\n</dl>\nFor the last two cases, size\nspecifies the size of the buffer, in bytes.\nThe default is an appropriate size.",
|
|
343
|
+
"returnvalues": [],
|
|
344
|
+
"parameters": [
|
|
345
|
+
{
|
|
346
|
+
"name": "mode",
|
|
347
|
+
"doc": "",
|
|
348
|
+
"types": ["string"],
|
|
349
|
+
"is_optional": "False"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "size",
|
|
353
|
+
"doc": "",
|
|
354
|
+
"types": ["number"],
|
|
355
|
+
"is_optional": "True"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"examples": "",
|
|
359
|
+
"replaces": "",
|
|
360
|
+
"error": "",
|
|
361
|
+
"tparams": [],
|
|
362
|
+
"members": [],
|
|
363
|
+
"notes": [],
|
|
364
|
+
"language": ""
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"type": "FUNCTION",
|
|
368
|
+
"name": "file:write",
|
|
369
|
+
"brief": "writes to a file",
|
|
370
|
+
"description": "Writes the value of each of its arguments to\nthe file.\nThe arguments must be strings or numbers.\nTo write other values,\nuse tostring or string.format before write.",
|
|
371
|
+
"returnvalues": [],
|
|
372
|
+
"parameters": [
|
|
373
|
+
{
|
|
374
|
+
"name": "...",
|
|
375
|
+
"doc": "",
|
|
376
|
+
"types": ["any"],
|
|
377
|
+
"is_optional": "False"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"examples": "",
|
|
381
|
+
"replaces": "",
|
|
382
|
+
"error": "",
|
|
383
|
+
"tparams": [],
|
|
384
|
+
"members": [],
|
|
385
|
+
"notes": [],
|
|
386
|
+
"language": ""
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"info": {
|
|
390
|
+
"namespace": "io",
|
|
391
|
+
"name": "Io",
|
|
392
|
+
"brief": "Lua io standard library",
|
|
393
|
+
"description": "Documentation for the Lua io standard library.\n\nFrom [Lua 5.1 Reference Manual](https://www.lua.org/manual/5.1/)\nby Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes.\n\nCopyright © 2006-2012 Lua.org, PUC-Rio.\n\nFreely available under the terms of the [Lua license](https://www.lua.org/license.html).",
|
|
394
|
+
"path": "engine/lua/src/lua_io.doc_h",
|
|
395
|
+
"file": "",
|
|
396
|
+
"notes": [],
|
|
397
|
+
"language": "Lua"
|
|
398
|
+
},
|
|
399
|
+
"format_version": 2
|
|
400
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elements": [
|
|
3
|
+
{
|
|
4
|
+
"type": "STRUCT",
|
|
5
|
+
"name": "json.decode_options",
|
|
6
|
+
"brief": "JSON decoding options",
|
|
7
|
+
"description": "JSON decoding options",
|
|
8
|
+
"returnvalues": [],
|
|
9
|
+
"parameters": [],
|
|
10
|
+
"examples": "",
|
|
11
|
+
"replaces": "",
|
|
12
|
+
"error": "",
|
|
13
|
+
"tparams": [],
|
|
14
|
+
"members": [
|
|
15
|
+
{
|
|
16
|
+
"name": "decode_null_as_userdata?",
|
|
17
|
+
"doc": "Decode JSON <code>null</code> as <a href=\"/ref/json#json.null\">json.null</a> instead of <code>nil</code>.",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"notes": [],
|
|
22
|
+
"language": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "STRUCT",
|
|
26
|
+
"name": "json.encode_options",
|
|
27
|
+
"brief": "JSON encoding options",
|
|
28
|
+
"description": "JSON encoding options",
|
|
29
|
+
"returnvalues": [],
|
|
30
|
+
"parameters": [],
|
|
31
|
+
"examples": "",
|
|
32
|
+
"replaces": "",
|
|
33
|
+
"error": "",
|
|
34
|
+
"tparams": [],
|
|
35
|
+
"members": [
|
|
36
|
+
{
|
|
37
|
+
"name": "encode_empty_table_as_object?",
|
|
38
|
+
"doc": "Encode an empty table as an object instead of an array. The default is true.",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"notes": [],
|
|
43
|
+
"language": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "FUNCTION",
|
|
47
|
+
"name": "json.decode",
|
|
48
|
+
"brief": "decode JSON from a string to a lua-table",
|
|
49
|
+
"description": "Decode a string of JSON data into a Lua table.\nA Lua error is raised for syntax errors.",
|
|
50
|
+
"returnvalues": [
|
|
51
|
+
{
|
|
52
|
+
"name": "data",
|
|
53
|
+
"doc": "decoded JSON value",
|
|
54
|
+
"types": ["any"]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"parameters": [
|
|
58
|
+
{
|
|
59
|
+
"name": "json",
|
|
60
|
+
"doc": "json data",
|
|
61
|
+
"types": ["string"],
|
|
62
|
+
"is_optional": "False"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "options",
|
|
66
|
+
"doc": "optional decoding options",
|
|
67
|
+
"types": ["json.decode_options"],
|
|
68
|
+
"is_optional": "True"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"examples": "Converting a string containing JSON data into a Lua table:\n<div class=\"codehilite\"><pre><span></span><code><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=\"kd\">local</span> <span class=\"n\">jsonstring</span> <span class=\"o\">=</span> <span class=\"s1\">'{"persons":[{"name":"John Doe"},{"name":"Darth Vader"}]}'</span>\n <span class=\"kd\">local</span> <span class=\"n\">data</span> <span class=\"o\">=</span> <span class=\"n\">json</span><span class=\"p\">.</span><span class=\"n\">decode</span><span class=\"p\">(</span><span class=\"n\">jsonstring</span><span class=\"p\">)</span>\n <span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">data</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>\n\nResults in the following printout:\n<div class=\"codehilite\"><pre><span></span><code>{\n persons = {\n 1 = {\n name = John Doe,\n }\n 2 = {\n name = Darth Vader,\n }\n }\n}\n</code></pre></div>",
|
|
72
|
+
"replaces": "",
|
|
73
|
+
"error": "",
|
|
74
|
+
"tparams": [],
|
|
75
|
+
"members": [],
|
|
76
|
+
"notes": [],
|
|
77
|
+
"language": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "FUNCTION",
|
|
81
|
+
"name": "json.encode",
|
|
82
|
+
"brief": "encode a lua table to a JSON string",
|
|
83
|
+
"description": "Encode a lua table to a JSON string.\nA Lua error is raised for syntax errors.",
|
|
84
|
+
"returnvalues": [
|
|
85
|
+
{
|
|
86
|
+
"name": "json",
|
|
87
|
+
"doc": "encoded json",
|
|
88
|
+
"types": ["string"]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"parameters": [
|
|
92
|
+
{
|
|
93
|
+
"name": "tbl",
|
|
94
|
+
"doc": "Lua value to encode",
|
|
95
|
+
"types": ["any"],
|
|
96
|
+
"is_optional": "False"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "options",
|
|
100
|
+
"doc": "optional encoding options",
|
|
101
|
+
"types": ["json.encode_options"],
|
|
102
|
+
"is_optional": "True"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"examples": "Convert a lua table to a JSON string:\n<div class=\"codehilite\"><pre><span></span><code><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=\"kd\">local</span> <span class=\"n\">tbl</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"n\">persons</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"p\">{</span> <span class=\"n\">name</span> <span class=\"o\">=</span> <span class=\"s2\">"John Doe"</span><span class=\"p\">},</span>\n <span class=\"p\">{</span> <span class=\"n\">name</span> <span class=\"o\">=</span> <span class=\"s2\">"Darth Vader"</span><span class=\"p\">}</span>\n <span class=\"p\">}</span>\n <span class=\"p\">}</span>\n <span class=\"kd\">local</span> <span class=\"n\">jsonstring</span> <span class=\"o\">=</span> <span class=\"n\">json</span><span class=\"p\">.</span><span class=\"n\">encode</span><span class=\"p\">(</span><span class=\"n\">tbl</span><span class=\"p\">)</span>\n <span class=\"n\">pprint</span><span class=\"p\">(</span><span class=\"n\">jsonstring</span><span class=\"p\">)</span>\n<span class=\"kr\">end</span>\n</code></pre></div>\n\nResults in the following printout:\n<div class=\"codehilite\"><pre><span></span><code>{"persons":[{"name":"John Doe"},{"name":"Darth Vader"}]}\n</code></pre></div>",
|
|
106
|
+
"replaces": "",
|
|
107
|
+
"error": "",
|
|
108
|
+
"tparams": [],
|
|
109
|
+
"members": [],
|
|
110
|
+
"notes": [],
|
|
111
|
+
"language": ""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "VARIABLE",
|
|
115
|
+
"name": "json.null",
|
|
116
|
+
"brief": "null",
|
|
117
|
+
"description": "Represents the null primitive from a json file",
|
|
118
|
+
"returnvalues": [],
|
|
119
|
+
"parameters": [],
|
|
120
|
+
"examples": "",
|
|
121
|
+
"replaces": "",
|
|
122
|
+
"error": "",
|
|
123
|
+
"tparams": [],
|
|
124
|
+
"members": [],
|
|
125
|
+
"notes": [],
|
|
126
|
+
"language": ""
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"info": {
|
|
130
|
+
"namespace": "json",
|
|
131
|
+
"name": "JSON",
|
|
132
|
+
"brief": "JSON API documentation",
|
|
133
|
+
"description": "Manipulation of JSON data strings.",
|
|
134
|
+
"path": "engine/script/src/script_json.cpp",
|
|
135
|
+
"file": "",
|
|
136
|
+
"notes": [],
|
|
137
|
+
"language": "Lua"
|
|
138
|
+
},
|
|
139
|
+
"format_version": 2
|
|
140
|
+
}
|