typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Not transpiling decorators

Open SimonSchick opened this issue 7 months ago • 1 comments

It seems to emit decorators as-is in both experimental and regular mode.

SimonSchick avatar May 22 '25 22:05 SimonSchick

Yes, see: https://github.com/microsoft/typescript-go#what-works-so-far

jakebailey avatar May 22 '25 22:05 jakebailey

Yes, see: https://github.com/microsoft/typescript-go#what-works-so-far

Why decorator is not in the list? Or does the list only show the planned/ongoing features ?

mlarabi avatar Jun 21 '25 09:06 mlarabi

Emit is marked as "in progress".

jakebailey avatar Jun 21 '25 15:06 jakebailey

If you're interested it would need to be implemented here:

https://github.com/microsoft/typescript-go/blob/35f3043124af20a5c9aeb7463adfd50e6c23d107/internal/transformers/transformer.go#L107-L108

tmm1 avatar Jun 21 '25 18:06 tmm1