Java to typescript Conversion



Hi guys, now I am using to connet a client android to Node .js server. but I need to config a options to use only websocket, if use that let transports = Array.create(java.lang.String, 1) ; transports[0] = “websocket”; i can create a Native java Array String works good in javascript but can’t work in typescript.


What exactly is the issue. If the error is about java.lang.String you can simply declare it as declare var java: any at top of your file or install tns-platform-declarations