TypeScript

TypeScript d tutlayt n usihel sufella n JavaScript i tt-yesnulfan Anders Hejlsberg ( Microsoft ). Beɛd la compilation TypeScript yettuɣal Javascript deg yiminig.

TypeScript vs Javascript

Ttipaj

Deg JavaScript ulac Ttipaj, seddaw egzampl anda la tawuri addition tqebbel kulci ( number , string ...etc.) :

addition(3, 2) ad yefk 5, addition(3, 'toto') ad yefk '3toto'.

S TypeScrit, nezmer ad nerna les Types akken ur nezmir ad nɛeddi ala number :

Win yesseqdacen addition s Typscript ur yezmir ara ad yessawel addition(3, 'toto').