Sitevision Developer
Log in

Log in

TypeScript support in @sitevision/create-sitvision-app

Our command line utility has gone through som major refactoring and now has built in support for TypeScript

Published: 2023-02-13

@sitevision/create-sitevision-app is our command line utility for bootstrapping apps, both WebApps and RESTApps.

TypeScript

TypeScript is a superset of JavaScript and transpiles to JavaScript at build time which makes it possible to use in WebApps/RESTapps.

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

https://www.typescriptlang.org/

With TypeScript you'll have even better help from your editor with intelligent code completion as well as help with catching errors without even having to run your app.

Since version @sitevision/sitevision-scripts@3.1.0 it's possible to create WebApps and RESTapps using TypeScript.

With the release of Sitevision 2023.02.1 we have also improved the Type-declarations for our API:s. They are available to download from npm as @sitevision/api. Read more about how you can use this from your Sitevision app in our typescript documentation you can find here.

If you still prefer vanilla JavaScript then you just contiue as you have done before. TypeScript is just an optional "add on" if you prefer using types.