The typescript-generator-maven-plugin let you generate TypeScript declaration file from specified Java classes.
The plugin has a generate goal.
You can find detailed description how it works on GitHub typescript-generator project.