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 3
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 !
Exécuter r361
Nouvelles fonctionnalités
Nouveaux ajouts
Windows WebView2: add 'Export for Remote Preview' setting
Corrections de bug
Possible issue using advanced minify exports in DOM mode
Mises à jour du SDK
Add IPluginInfo/IBehaviorInfo methods SetScriptInterfaceNames(), SetTypeScriptDefinitionFiles()
Prevent '[???]' appearing as default value for text properties
Partager Construct 3 la parution r361 maintenant