Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37553

Re: Javascript to Typescript conversion

Newsgroups comp.lang.javascript
Date 2019-10-13 13:38 -0700
References <54fda980-eb2e-4fb7-9a85-bbb6c724856d@googlegroups.com> <4edc5dd8-8bdf-465f-845a-4b69ffd704de@googlegroups.com>
Message-ID <1eed8e2a-bc95-4d79-94f9-7abc83fb88cd@googlegroups.com> (permalink)
Subject Re: Javascript to Typescript conversion
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


Den söndag 13 oktober 2019 kl. 18:49:39 UTC+2 skrev Michael Haufe (TNO):
> On Sunday, October 13, 2019 at 9:19:42 AM UTC-5, Jonas Thörnvall wrote:
> > I read that changing the filetype is as easy as changing the extension from js to ts is that true?
> 
> Yes. TypeScript is a syntactic superset of JavaScript
> 
> > And what about the HTML dome is that supported by typescript? If not what kind of "frontend?" "window and form interface" do typescript use?
>
> It's the same as you do now. The TypeScript compiler converts TypeScript to JavaScript with no mention of HTML.
>
? Well right now my frontend for user input values is using Form? <input type HTML? So what is the imput handler in, typescript if it does not handle "messages from the html dome? 
I guess as a superset  typescript support cavas so must i make  input fields via canvas?
 
> > And last will i be able to compile my program into an executable?
> 
> Short answer: no, it's not intended for that. It's a TypeScript to JavaScript compiler.
> 
> Long answer: yes, but with additional effort that is not worth the cost IMO. 
> 
> Why not just create a PWA?

What is a PWA never heard of it.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Javascript to Typescript conversion Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-13 07:19 -0700
  Re: Javascript to Typescript conversion "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-10-13 09:49 -0700
    Re: Javascript to Typescript conversion Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-13 13:38 -0700
      Re: Javascript to Typescript conversion Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-13 13:43 -0700
        Re: Javascript to Typescript conversion "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-10-13 14:15 -0700
      Re: Javascript to Typescript conversion "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-10-13 14:13 -0700

csiph-web