We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jonat@anon_laptop MINGW64 ~/go/src/github.com/nomadicGopher/typescript2javascript (main) $ go run main.go 2025/01/07 00:45:20 TypeScript Code: let message: string = "Hello, World!"; console.log(message); 2025/01/07 00:45:20 Typescript: SyntaxError: SyntaxError: (anonymous): Line 1:12 Unexpected token : exit status 1
github.com/clarkmcc/go-typescript
The text was updated successfully, but these errors were encountered:
TODO: compile instead of evaluate
jsCode, err := typescript.Compile(tsCode) if err != nil { // Handle error } // Use jsCode (e.g., write it to a file or send it in an HTTP response)
Sorry, something went wrong.
Fixed with typescript.TranspileString(string(tsCode))
nomadicGopher
No branches or pull requests
jonat@anon_laptop MINGW64 ~/go/src/github.com/nomadicGopher/typescript2javascript (main)
$ go run main.go
2025/01/07 00:45:20 TypeScript Code:
let message: string = "Hello, World!";
console.log(message);
2025/01/07 00:45:20 Typescript: SyntaxError: SyntaxError: (anonymous): Line 1:12 Unexpected token :
exit status 1
github.com/clarkmcc/go-typescript
The text was updated successfully, but these errors were encountered: