How can I transform the following snippet:
let myVar: string = 'test';
To following output:
// type {string}
var myVar = 'test';
using sweetjs?
UPDATE
I'm looking for a way to transform the exact first code snippet to the second one. Including the // type {string}
comment.
I Want to use it to create a simple DSL to generate a code to be checked with google closure compiler.