Aller au contenu

TypeScript

Si Wikipedia, tasanayt tilellit.
TypeScript
tutlayt n usihel, langage de script (fr) Suqel, langage impératif (fr) Suqel, langage de programmation fonctionnel (fr) Suqel, langage de programmation événementielle (fr) Suqel, langage de programmation stricte (fr) Suqel, langage de haut niveau (fr) Suqel d aseɣẓan ilelli n uɣbalu yeldin
Isefka
Azemz n ubeddi d unulfu 1 Tuber 2012
Amesnulfu Anders Hejlsberg
Développé par (fr) Suqel Microsoft (fr) Suqel
Influencé par (fr) Suqel JavaScript (mul) Suqel, C Sharp, Java (tutlayt) d CoffeeScript (fr) Suqel
Paradigme (fr) Suqel programmation fonctionnelle (fr) Suqel, généricité (fr) Suqel, programmation impérative (fr) Suqel, programmation orientée objet (fr) Suqel d programmation événementielle (fr) Suqel
Designer (fr) Suqel Microsoft (fr) Suqel
Langage de programmation (fr) Suqel JavaScript (mul) Suqel d TypeScript
Akufi n tengalt taɣbalut https://github.com/Microsoft/TypeScript
Assurance qualité logicielle (fr) Suqel intégration continue (fr) Suqel
Identifiant de version logicielle (fr) Suqel 5.9, 1.1.0.1, 1.3, 1.4, 1.5, 1.5.3, 1.5.4, 1.6, 1.6.2, 1.7, 1.7.3, 1.7.5, 1.8.2, 1.8.5, 1.8.7, 1.8.10, 1.8.9, 2.0.3, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.1.4, 2.1.5, 2.1.6, 2.2, 2.2.1, 2.2.2, 2.3, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4, 2.4.1, 2.4.2, 2.5, 2.5.2, 2.5.3, 2.6, 2.6.1, 2.6.2, 2.7, 2.7.1, 2.7.2, 2.8.1, 2.8.3, 2.8.4, 2.9.1, 2.9.2, 3.0.3, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.2.2, 3.2.4, 3.3.1, 3.3.3, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.2, 3.6.3, 3.6.4, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.6.5, 3.8.2, 3.8.3, 3.9.2, 3.9.3, 3.9.5, 3.9.6, 3.9.7, 4.0.2, 4.0.3, 4.0.5, 4.1.3, 3.1.7, 3.7.6, 3.9.8, 4.0.6, 4.1.4, 4.1.5, 3.1.8, 3.7.7, 3.9.9, 4.0.7, 4.2.2, 4.2.3, 4.2.4, 4.3.4, 4.3.5, 4.4.2, 4.4.3, 4.4.4, 4.5.2, 4.5.3, 4.5.4, 4.5.5, 4.6 RC, 4.6.2, 4.6.3, 4.7.4, 4.8.2, 4.8.3, 3.9.10, 4.0.8, 4.1.6, 4.3.2, 4.3.3, 4.6.4, 4.7.2, 4.7.3, 4.8.4, 4.9, 4.9.4, 4.9.5, 5.0.2, 5.0.4, 5.0.3, 5.1.3, 5.1.5, 5.1.6, 5.2.2, 5.3.2, 5.3.3, 5.4.2, 5.4.3, 5.4.4, 5.4.5, 5.5.2, 5.5.3, 5.5.4, 5.6.2, 5.6.3, 5.7.2, 5.7.3, 5.8.2, 5.8.3 d 5.9.3
Asmel web unṣib typescriptlang.org
Ablug unṣib https://devblogs.microsoft.com/typescript/
Licence (fr) Suqel licence Apache 2.0 (fr) Suqel
Addad n yizerfan n umeskar sous droit d'auteur (fr) Suqel
Système de typage (fr) Suqel Duck typing (fr) Suqel, gradual typing (en) Suqel d système structural de types (fr) Suqel
Dialecte du langage informatique (fr) Suqel JavaScript (mul) Suqel
Adresse officielle de démonstration (fr) Suqel https://www.typescriptlang.org/play
Code de classification ACM (2012) (fr) Suqel 10011490
Extension de fichier (fr) Suqel ts d tsx

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

[ẓreg | ẓreg aɣbalu]

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

    function addition(x, y) {
        return x + y;
    }

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 :

    function addition(x : number, y : number) : number {
        return x + y;
    }

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