{"id":1179,"date":"2025-07-31T16:25:20","date_gmt":"2025-07-31T16:25:20","guid":{"rendered":"https:\/\/razvanvancea.ro\/blog\/?p=1179"},"modified":"2026-05-24T05:15:32","modified_gmt":"2026-05-24T05:15:32","slug":"k6-v0-57-gets-typescript-support-enabled-by-default-practical-guide","status":"publish","type":"post","link":"https:\/\/razvanvancea.ro\/blog\/2025\/07\/31\/k6-v0-57-gets-typescript-support-enabled-by-default-practical-guide\/","title":{"rendered":"k6 v0.57 gets TypeScript support enabled by default. How YOU can use it &#8211; step by step guide"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1179\" class=\"elementor elementor-1179\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-82bf2cb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"82bf2cb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-56a0bd4\" data-id=\"56a0bd4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-853cd12 elementor-widget elementor-widget-text-editor\" data-id=\"853cd12\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Starting with k6 v0.57, TypeScript support is enabled by default, which makes it even easier for developers to write performance testing scripts with the added benefits of type safety and modern features.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a02118a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a02118a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ece606f\" data-id=\"ece606f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-80f37da elementor-widget elementor-widget-heading\" data-id=\"80f37da\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Why Use TypeScript in k6?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-42d5870 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"42d5870\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b856ad0\" data-id=\"b856ad0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bfd8bc1 elementor-widget elementor-widget-text-editor\" data-id=\"bfd8bc1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"897\" data-end=\"971\">TypeScript offers several benefits over traditional JavaScript, including:<\/p><ol data-start=\"973\" data-end=\"1500\"><li data-start=\"973\" data-end=\"1075\"><p data-start=\"976\" data-end=\"1075\"><strong data-start=\"976\" data-end=\"992\">Type Safety:<\/strong> Catch type errors at compile time, improving the reliability of your test scripts.<\/p><\/li><li data-start=\"1076\" data-end=\"1211\"><p data-start=\"1079\" data-end=\"1211\"><strong data-start=\"1079\" data-end=\"1110\">Intelligent Autocompletion:<\/strong> With modern IDE support, you&#8217;ll get better autocompletion and suggestions when writing test scripts.<\/p><\/li><li data-start=\"1212\" data-end=\"1351\"><p data-start=\"1215\" data-end=\"1351\"><strong data-start=\"1215\" data-end=\"1244\">Improved Maintainability:<\/strong> Type annotations make the code easier to understand, which is helpful when managing large testing scripts.<\/p><\/li><li data-start=\"1352\" data-end=\"1500\"><p data-start=\"1355\" data-end=\"1500\"><strong data-start=\"1355\" data-end=\"1371\">Familiarity:<\/strong> If you or your team are already using TypeScript for development, adopting it for testing scripts makes the transition smoother.<\/p><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2929363 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2929363\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a19b292\" data-id=\"a19b292\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8861fba elementor-widget elementor-widget-heading\" data-id=\"8861fba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Setting up TS for k6<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46f72b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46f72b8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-815f652\" data-id=\"815f652\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f9e7254 elementor-widget elementor-widget-text-editor\" data-id=\"f9e7254\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To get started with TypeScript in k6, the setup process is quite simple. If you\u2019re familiar with how to set up TypeScript in other environments, it should feel very familiar.<\/p><p><strong>1. Install k6 v0.57 or higher<\/strong><\/p><p>You can check the version of k6 installed using the following command<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9104a8c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9104a8c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-618092f\" data-id=\"618092f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b7f5ade elementor-widget elementor-widget-image\" data-id=\"b7f5ade\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"78\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-1024x124.png\" class=\"attachment-large size-large wp-image-1181\" alt=\"k6-version\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-1024x124.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-300x36.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-768x93.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-850x103.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-24x3.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-36x4.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36-48x6.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.41.36.png 1218w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3191d19 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3191d19\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e8f01a0\" data-id=\"e8f01a0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-42f3696 elementor-widget elementor-widget-text-editor\" data-id=\"42f3696\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you need to install or update k6, download it from the <a href=\"https:\/\/grafana.com\/docs\/k6\/latest\/set-up\/install-k6\/\" target=\"_blank\" rel=\"noopener\">k6 official website<\/a><\/p><p><strong>2. Install TypeScript<\/strong><\/p><p>You can install it globally, using NPM<br \/>npm install -g typescript<br \/><br \/><strong>3. Write your first typescript test with k6<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5c1d9e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5c1d9e7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e4e93ed\" data-id=\"e4e93ed\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3e35739 elementor-widget elementor-widget-text-editor\" data-id=\"3e35739\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Create a file with the .ts extension (e.g. script.ts) instead of the typical .js. Now, you can start writing your k6 test script using TypeScript.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-359450a elementor-widget elementor-widget-image\" data-id=\"359450a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"439\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-1024x702.png\" class=\"attachment-large size-large wp-image-1182\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-1024x702.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-300x206.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-768x527.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-850x583.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-24x16.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-36x25.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58-48x33.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-18.51.58.png 1285w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8681ff3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8681ff3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f477065\" data-id=\"f477065\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b6c0999 elementor-widget elementor-widget-text-editor\" data-id=\"b6c0999\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>4. Run the TS test script<\/strong><\/p><p>To run the script, use the following command <strong>k6 run script.ts<\/strong><\/p><p>Behind the scene, k6 will automatically handle the TypeScript transpilation in the background using esbuild, so there&#8217;s no need for a separate build step.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a8c5a2f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a8c5a2f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-14a0693\" data-id=\"14a0693\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-364ac26 elementor-widget elementor-widget-heading\" data-id=\"364ac26\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Optional: What you still might want<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0188d80 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0188d80\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73e0c78\" data-id=\"73e0c78\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-74ac5e6 elementor-widget elementor-widget-text-editor\" data-id=\"74ac5e6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>While you don&#8217;t need any npm setup and packages anymore to run the .ts k6 tests, you might still want it for:<br \/>1. better IDE experience<br \/>2. advanced typescript features (e.g. custom tsconfig.json for stric typing rules)<\/p><p>You can achieve that by running <strong>npm init<\/strong> and installing the following dev dependencies<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c85b1ce elementor-widget elementor-widget-image\" data-id=\"c85b1ce\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"628\" height=\"207\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13.png\" class=\"attachment-large size-large wp-image-1183\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13.png 628w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13-300x99.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13-24x8.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13-36x12.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.18.13-48x16.png 48w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1732be8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1732be8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-af00195\" data-id=\"af00195\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-250cda8 elementor-widget elementor-widget-text-editor\" data-id=\"250cda8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Also create tsconfig.json file in the project root and configure it<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f02a2ee elementor-widget elementor-widget-image\" data-id=\"f02a2ee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"886\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47.png\" class=\"attachment-large size-large wp-image-1184\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47.png 647w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47-217x300.png 217w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47-300x415.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47-17x24.png 17w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47-26x36.png 26w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.19.47-35x48.png 35w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-427401e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"427401e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c729864\" data-id=\"c729864\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a397531 elementor-widget elementor-widget-text-editor\" data-id=\"a397531\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This approach allows you to catch typescript errors without emitting files by running <strong>npx tsc &#8211;noEmit<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8f54c03 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8f54c03\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ee3a946\" data-id=\"ee3a946\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9e89d0e elementor-widget elementor-widget-image\" data-id=\"9e89d0e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"56\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-1024x89.png\" class=\"attachment-large size-large wp-image-1185\" alt=\"noemit\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-1024x89.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-300x26.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-768x67.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-850x74.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-24x2.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-36x3.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07-48x4.png 48w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.21.07.png 1332w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-84e73fa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"84e73fa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b75d5a3\" data-id=\"b75d5a3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-aca2bbb elementor-widget elementor-widget-text-editor\" data-id=\"aca2bbb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Of any typescript violation occurs, then the above command will throw an error.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d2f68c5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d2f68c5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f6da33\" data-id=\"4f6da33\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-467b419 elementor-widget elementor-widget-image\" data-id=\"467b419\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"214\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-1024x342.png\" class=\"attachment-large size-large wp-image-1186\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-1024x342.png 1024w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-300x100.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-768x257.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-1536x514.png 1536w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-2048x685.png 2048w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-850x284.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-24x8.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-36x12.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.16-48x16.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ec13716 elementor-widget elementor-widget-text-editor\" data-id=\"ec13716\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The same goes for the code editor\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1e0658a elementor-widget elementor-widget-image\" data-id=\"1e0658a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"197\" src=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04.png\" class=\"attachment-large size-large wp-image-1187\" alt=\"\" srcset=\"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04.png 986w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-300x92.png 300w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-768x237.png 768w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-850x262.png 850w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-24x7.png 24w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-36x11.png 36w, https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-31-at-19.22.04-48x15.png 48w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1004a57 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1004a57\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dcb8c09\" data-id=\"dcb8c09\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c1f0133 elementor-widget elementor-widget-heading\" data-id=\"c1f0133\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aa0686d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"aa0686d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ff3a7c\" data-id=\"5ff3a7c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-198e175 elementor-widget elementor-widget-text-editor\" data-id=\"198e175\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The transition to TypeScript in k6 is seamless and brings significant advantages for developers familiar with TypeScript or looking to improve their testing process. By following the steps outlined in this guide, you can start writing TypeScript-based k6 tests and take your performance testing to the next level.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Starting with k6 v0.57, TypeScript support is enabled by default, which makes it even easier&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[20,12],"tags":[],"class_list":["post-1179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-k6","category-tools"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/razvanvancea.ro\/blog\/wp-content\/uploads\/2025\/07\/Copy-of-Copy-of-Copy-of-Your-paragraph-text-1.png","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/comments?post=1179"}],"version-history":[{"count":7,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1179\/revisions"}],"predecessor-version":[{"id":1194,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/posts\/1179\/revisions\/1194"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media\/1191"}],"wp:attachment":[{"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/media?parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/categories?post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/razvanvancea.ro\/blog\/wp-json\/wp\/v2\/tags?post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}