johnfn / ts2gd

💥 Compile TypeScript to GDScript for Godot
200 stars 14 forks source link

Decorators don't parse #100

Open ikiselev1989 opened 1 year ago

ikiselev1989 commented 1 year ago

Hey! Thanks for the project. It's really cool. I'm trying to make godot's 2d tutorial in ts but I faced an issue with decorators:

in ts

class Main extends Node {
    @exports
    MobScene: PackedScene<Mob>;
}

in gd

# This file has been autogenerated by ts2gd. DO NOT EDIT!

extends Node
class_name Main

var MobScene
var score: int
func _ready():
  randomize()

ts2gd version - latest godot version - 3.5.1