Beta versions are not as thoroughly tested as stable

Beta versions are not as thoroughly tested as stable

Beta branch

Construct Animate r361

TypeScript support; Remote Preview with WebView2

03 October, 2023 ()

Email Me New Releases

Don't miss out on the latest and greatest new features in Construct Animate

Create an Account

Notes

This beta release adds a significant upgrade to the scripting feature: TypeScript is now supported! TypeScript is an extension to JavaScript that adds types, such as specifying that a variable is a number, or which kind of class an object is. That then allows things like better autocomplete based on static typing, as well as other useful development tools. To get started, save your project as a folder, right-click the Scripts folder in the Project Bar, and select Set up TypeScript. This sets up the project for TypeScript, including adding an official set of type definitions covering all Construct APIs, ready to use with VS Code. Then as you write TypeScript code, it can be automatically compiled to JavaScript and loaded by Construct on the next preview (with the Auto reload all on preview setting). Both TypeScript and JavaScript are among the most popular programming languages in the world, and now you can use industry-standard static type tooling when writing code in Construct too! We'll have more documentation and samples for this coming soon, but it's here in this beta release so you can start trying it out right away.

This release also adds a new Export for Remote Preview option when exporting for Windows WebView2. This allows using Remote Preview with the WebView2 export option, allowing the same Remote Preview workflow that was possible with NW.js, helping you rapidly test features only available in the WebView2 export. Stay tuned for more updates!

Like this Release?

Let us know with a thumbs up!

10
Launch r361

New Features

0 favourites
TypeScript support

New Additions

0 favourites
Windows WebView2: add 'Export for Remote Preview' setting

Bug Fixes

0 favourites
Possible issue using advanced minify exports in DOM mode

Share Construct Animate Release r361 Now

  • 4 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • I tried yesterday to use vscode + typescript. Code definitions and autocomplete work terribly. Would be great to have construct definitions plugins for vscode and jetbrains

  • I followed the steps to use TS, but when I previewed it, I did not convert it to JavaScript

  • What about webStorm? is it possible somehow to write the code there?

  • Typescript support! Thank you! We extensively use TS in our project and had to create our own partial .d.ts files. Looking forward to try out the official versions. Also I have found it useful for checking JS too when you have typescript definition files. See: typescriptlang.org/docs/handbook/intro-to-js-ts.html