Les versions Beta ne sont pas autant testées que les versions Stables

Les versions Beta ne sont pas autant testées que les versions Stables

TypeScript support; Remote Preview with WebView2

03 October, 2023 ()

Envoyez-moi un courriel lors de nouvelles parutions

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

Créer un compte

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!

Vous aimez cette parution ?

Faites-le nous savoir avec un pouce haut !

10
Exécuter r361

Nouvelles fonctionnalités

0 favoris
TypeScript support

Nouveaux ajouts

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

Corrections de bug

0 favoris
Possible issue using advanced minify exports in DOM mode

Partager Construct Animate la parution r361 maintenant

  • 4 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • I followed the steps to use TS, but when I previewed it, I did not convert it to JavaScript

  • 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

  • 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