To enable this, add the DataTypeScriptTransformer transformer to the transformers in the typescript-transformer.php config file.
You then should annotate each data object with a /** @typescript */ annotation or a #[TypeScript] attribute.
If you want to transform all the data objects within your application to TypeScript, you can use the DataTypeScriptCollector, which should be added to the collectors in typescript-transformer.php.