johnfn / ts2gd

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

TS2345: Argument of type 'string' is not assignable to parameter of type 'never'. #94

Open mrLob opened 2 years ago

mrLob commented 2 years ago

image

Idea fix it with "change signature" automaticly, but I dont know how it in VScode

mrLob commented 2 years ago

image

johnfn commented 2 years ago

Can I see the code that's causing this error? It's a little hard to diagnose without it :)

mrLob commented 2 years ago

Can I see the code that's causing this error? It's a little hard to diagnose without it :)

Huh, sorry, my bad. Problem in _godot_defs / Input.d.ts file By default action param type is Action gd: Input.is_action_just_released("jump") Input.is_action_just_pressed("jump")

ts: Input.is_action_just_released('jump') Input.is_action_just_pressed('jump') image

Ty for fast reply, and sorry for my stupid practices, I'm noob in godot.