TypeScript Programming Language
(Redirected from TypeScript Language)
Jump to navigation
Jump to search
A TypeScript Programming Language is a free, open-source strongly-typed statically typed, object-oriented, and multi-paradigm programming language that is a super-set of JavaScript.
- Context:
- It can (typically) be developed and maintained by Microsoft.
- It can be used to create Typescript Code Items.
- It can implement features such as Static Method Grouping and Module Resolution.
- It can (typically) be used to define TypeScript Code (such as TypeScript program or a TypeScript library) with TypeScript statements (for TypeScript variables, Python data structures, and TypeScript conditional statements) that can be interpreted by a TypeScript Interpreter.
- It can (typically) include TypeScript Standard Libraries.
- It can be parsed by a TypeScript Parser (e.g. in a TypeScript implementation, such as ...).
- It can utilize TypeScript Decorators for method and class modification, which improves code readability and maintainability.
- It can extend multiple tsconfig.json files.
- ...
- Example(s):
- TypeScript v5.4.5 (2024-04-01) [1]
- ...
- TypeScript v4.8.4 (2022-09-27) [2].
- ...
- TypeScript v1.1.0 (2014-10-07).
- …
- A Project Configuration Example utilizing the extends feature in tsconfig.json, allowing hierarchical management of compiler options across different parts of a project.
- A Decorator Use Example in TypeScript 5.0, where custom decorators @loggedMethod and @bound are used to enhance method functionalities, showcasing TypeScript's capability to manage method bindings and log method calls effectively.
- ...
- Counter-Example(s):
- Dart Language, Flow Language.
- JavaScript, as TypeScript is a superset of JavaScript, but adds static typing and object-oriented features that JavaScript does not natively support.
- Dynamic Typing Languages like Python lang or Ruby lang, where types are determined at runtime, unlike TypeScript’s compile-time type checking.
- Loosely Typed Languages, which do not enforce type definition as strictly as TypeScript, leading to more flexibility but less safety in type usage.
- See: Multi-Paradigm Programming Language, Functional Programming, Generic Programming, Imperative Programming, Object-Oriented Programming, CodePlex, Structural Type System.
References
2023
- https://www.youtube.com/watch?v=U6s2pdxebSo
- NOTES: Here are seven key bullet points about TypeScript drawn from the provided content:
- TypeScript is a free, open-source programming language developed and maintained by Microsoft. It was created by Anders Hejlsberg, lead architect of C# and creator of Delphi and Turbo Pascal.
- TypeScript is a strongly-typed, statically-typed, object-oriented, multi-paradigm programming language that is a strict syntactical superset of JavaScript.
- TypeScript adds optional type annotations, class-based object-oriented programming, and static typing to JavaScript, while still compiling down to plain JavaScript code.
- TypeScript's type system enables powerful tooling experiences like auto-completion, navigation, refactoring, and type checking to catch common errors.
- TypeScript can be used for both client-side and server-side development (e.g. with Node.js or Deno). Transpilation can be done using the default TypeScript compiler or other tools like Babel.
- Definition files allow TypeScript to provide type information for existing JavaScript libraries. Many third-party header files exist for popular libraries like jQuery, MongoDB, D3.js, etc.
- The TypeScript compiler is itself written in TypeScript and compiled to JavaScript. TypeScript is licensed under the Apache License 2.0.
- NOTES: Here are seven key bullet points about TypeScript drawn from the provided content:
2023
- chat
- Q: What kind of programming language is TypeScript?
- A: TypeScript is a statically typed, object-oriented, and multi-paradigm programming language that is a super-set of JavaScript. It was developed and is maintained by Microsoft. TypeScript adds optional type annotations and class-based object-oriented programming to JavaScript and compiles to plain JavaScript, making it usable in any environment that JavaScript runs.
2022
- (Wikipedia, 2022) ⇒ https://en.wikipedia.org/wiki/TypeScript Retrieved:2022-11-13.
- TypeScript is a free and open source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. It is designed for the development of large applications and transpiles to JavaScript. As it is a superset of JavaScript, existing JavaScript programs are also valid TypeScript programs. TypeScript may be used to develop JavaScript applications for both client-side and server-side execution (as with Node.js or Deno). Multiple options are available for transpilation. The default TypeScript Compiler can be used, or the Babel compiler can be invoked to convert TypeScript to JavaScript. TypeScript supports definition files that can contain type information of existing JavaScript libraries, much like C++ header files can describe the structure of existing object files. This enables other programs to use the values defined in the files as if they were statically typed TypeScript entities. There are third-party header files for popular libraries such as jQuery, MongoDB, and D3.js. TypeScript headers for the Node.js library modules are also available, allowing development of Node.js programs within TypeScript. The TypeScript compiler is itself written in TypeScript and compiled to JavaScript. It is licensed under the Apache License 2.0. Anders Hejlsberg, lead architect of C# and creator of Delphi and Turbo Pascal, has worked on the development of TypeScript.
2022
- https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/
- QUOTE: ... If you’re not yet familiar with TypeScript, it’s a language that builds on JavaScript and adds syntax for types. These types let you put your expectations and assumptions into your code, and those assumptions can then be checked by the TypeScript type-checker. This checking can help avoid typos, calling uninitialized values, mixing up arguments for functions, and more. Types go beyond checking though, and are used to give you a powerful editing experience for both TypeScript and JavaScript, enabling code completion, go-to-definition, renaming, and more. In fact, if you already use JavaScript in Visual Studio or VS Code, you’re already using TypeScript! ...