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


Groups > comp.lang.javascript > #37548 > unrolled thread

Javascript to Typescript conversion

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2019-10-13 07:19 -0700
Last post2019-10-13 14:13 -0700
Articles 6 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  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

#37548 — Javascript to Typescript conversion

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-10-13 07:19 -0700
SubjectJavascript to Typescript conversion
Message-ID<54fda980-eb2e-4fb7-9a85-bbb6c724856d@googlegroups.com>
I read that changing the filetype is as easy as changing the extension from js to ts is that true?

And what about the HTML dome is that supported by typescript? If not what kind of "frontend?" "window and form interface" do typescript use?

And last will i be able to compile my program into an executable?

[toc] | [next] | [standalone]


#37549

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2019-10-13 09:49 -0700
Message-ID<4edc5dd8-8bdf-465f-845a-4b69ffd704de@googlegroups.com>
In reply to#37548
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.

> 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?

[toc] | [prev] | [next] | [standalone]


#37553

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-10-13 13:38 -0700
Message-ID<1eed8e2a-bc95-4d79-94f9-7abc83fb88cd@googlegroups.com>
In reply to#37549
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.

[toc] | [prev] | [next] | [standalone]


#37554

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-10-13 13:43 -0700
Message-ID<1a734c02-43ce-453e-b246-a9d8d13c972b@googlegroups.com>
In reply to#37553
Den söndag 13 oktober 2019 kl. 22:38:40 UTC+2 skrev Jonas Thörnvall:
> 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.

Just had a look it seem a bit complicated.

[toc] | [prev] | [next] | [standalone]


#37558

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2019-10-13 14:15 -0700
Message-ID<947aec17-e936-4b5a-9971-72f6eaf84e73@googlegroups.com>
In reply to#37554
On Sunday, October 13, 2019 at 3:43:45 PM UTC-5, Jonas Thörnvall wrote:
> Den söndag 13 oktober 2019 kl. 22:38:40 UTC+2 skrev Jonas Thörnvall:
> > Den söndag 13 oktober 2019 kl. 18:49:39 UTC+2 skrev Michael Haufe (TNO):

> > > Why not just create a PWA?
> > 
> > What is a PWA never heard of it.
> 
> Just had a look it seem a bit complicated.

Less complicated than trying to create an executable.

[toc] | [prev] | [next] | [standalone]


#37557

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2019-10-13 14:13 -0700
Message-ID<d146efa3-09bc-4a7a-829b-2e9d5d0e146f@googlegroups.com>
In reply to#37553
On Sunday, October 13, 2019 at 3:38:40 PM UTC-5, Jonas Thörnvall wrote:
> 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?

Look at the website to start:

https://www.typescriptlang.org/docs/home.html

also the intro video:

https://channel9.msdn.com/Events/Build/2017/B8088/


> > Why not just create a PWA?
> 
> What is a PWA never heard of it.

See the MDN article:

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web