Answer the question
In order to leave comments, you need to log in
How to implement this in typescript?
how to implement similar method call in typescript i
get error
let p = new PacketWriter["writeVarInt"](0);
TS7053: Element implicitly has an 'any' type because expression of type '"writeVarInt"' can't be used to index type 'typeof PacketWriter'.
Property 'writeVarInt' does not exist on type 'typeof PacketWriter'.
let p = new PacketWriter.writeVarInt(0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question