dice-game icon indicating copy to clipboard operation
dice-game copied to clipboard

[Question] Typescript on Client

Open axemclion opened this issue 9 years ago • 3 comments

I see that while the server is written in TypeScript, the ReactNative client is still JavaScript. Am I missing something, or is the client indeed in ES6 ?

axemclion avatar Aug 17 '16 21:08 axemclion

You are totally right. Only the server is done in TypeScript. I was considering using Flow for client but it didn't happen.

asrytis avatar Aug 18 '16 06:08 asrytis

@asrytis I was thinking you could use Typescript for the client also. You could use the --transformer flag and just pick up the .tsx files using the Typescript compiler. Do you think that would work for you ?

axemclion avatar Aug 19 '16 00:08 axemclion

@axemclion yes I may still switch to TypeScript if I have time. Type safety is not a huge concern in this particular client, but I'd love to see how code completion supplements an already fantastic dev experience.

asrytis avatar Aug 19 '16 12:08 asrytis