accessify
Python design kit: interfaces, declared exception throws, class members accessibility levels (private and protected methods for humans).
- 115
- Python
- MIT
- 7 mo ago
A Typescript fundamentals tutorials for beginners, An introduction & step-by-step guide to Typescript language latest features in combination with ECMAScript 5,6,7
Repo dinanathsj29/typescript-tutorial, read from GitHub 1 d ago. dinanathsj29 has not joined Take My Repo.
dinanathsj29/typescript-tutorial is a public repo on GitHub by dinanathsj29. A Typescript fundamentals tutorials for beginners, An introduction & step-by-step guide to Typescript language latest features in combination with ECMAScript 5,6,7. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in JavaScript, has 24 stars and last changed on 2019-08-10. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
TypeScript is an open-source object-oriented language developed and maintained by Microsoft. It is a typed superset of JavaScript that compiles to plain JavaScript. Will learn/review the new keywords-let, const and function/object syntax also shows how the new class, interface, module syntax can be used with JavaScript library like Angular, React, Node. TypeScript is pure object oriented with classes, interfaces, modules, import, export and statically typed like C# or Java. The popular JavaScript framework Angular 2.x and above versions are written in TypeScript. Mastering TypeScript can help developers and programmers to write object-oriented programs and have them compiled to JavaScript, both on the server side and client side.
TypeScript introduces us to the newest language features that can be used in JavaScript code. Due to this, I assume you have some working knowledge/understanding of JavaScript. If you haven't, will recommend watching JavaScript Essentials Tutorial for beginners. Basic knowledge of JavaScript is required, having a good understanding of OOP concepts and advanced JavaScript is an added advantage. Finally, you will be using a bit of Angular.js, React.js, and Node.js but nothing that requires deep/advanced knowledge.
Hi All, I'm Dinanath Jayaswal, Senior UI/Web Developer and Adobe Certified Expert Professional, I wanna welcome you to Typescript fundamentals beginners tutorial. In this course/tutorial will go over how to start with using the Typescript features right with the bang. Will dive into the specifics of Typescript and new features it includes. We'll look at new keywords, syntax, and operators that can be used to simplify code structure. At the end we'll take a look at class, module syntax in Typescript and how that can be used immediately with very popular JavaScript library/frameworks like Angular, React, Node, etc. Let us explore and learn some pretty exciting stuff so let's go ahead and get started with Typescript.
Typescript will introduce us to the newest language features that can be used in JavaScript code - The Modern JavaScript.
This course is for anyone and everyone, Almost everyone! who is interested in boost skills and further career - by learning new latest programming/coding standards/features/syntaxes/keywords introduced in the latest version of JavaScript to become a hi-tech developer. Programmers/Developers coming from any language wants to make a career in Web Technologies can learn Typescript.
MicrosoftAnders Hejlsberg (designer of C#) at Microsoft Typed superset of JavaScript which Compiles to plain JavaScriptTypescript = ECMAScript 5 + 6 + 7 + Latest featuresTypescript => JavaScript OR .ts => .jsCoffeeScript and Dart programming languages in a way that extends JavaScriptGoogle Angular 2.x and greater version, WinJS (The Windows library for JavaScript)TLS (TypeScript Language Service)Language − syntax, keywords, and type annotationsTSC TypeScript Compiler − converts TypeScript to JavaScript equivalentTLS TypeScript Language Service − Supports editor operations like static typing and type inference system, statement completion, code formatting, etc.cmd, git bash, node command prompt) to run some of node commandsnode -vnpm install -g typescripttsc (tsc = typescript compiler)tsc -v or tsc --versionNotepad++, Sublime Text, Adobe Brackets, Visual Studio Code to type codetsc file.tslet name:string = 'Dinanath';node file.js), NodeJs can not run/understand .ts filetsc file.ts --watchNote: Anything that is JavaScript code/programm is legal TypeScript
Syntax & Example:
Typescript
// by default typescript consider all files in a folder as a module, so variables defined in one file will be checked on the fly and throws an error: Cannot redeclare block-scoped variable - to solve issue use export {}
export {};
// write valid javascript, basic javascript/typescript
console.log('Welcome to typescript');
// ------------------------------
//type annotation to eliminate any data variable type error
let name:string = 'Dinanath';
//name=123; // error
console.log('My Name is: ' + name);
Write and test Typescript without download or install anything: https://www.typescriptlang.org/play
Google Chrome Extention named Scratch JS, an add-on for DevTools which integrates both the Traceur and Babel transpilers, allowing us to test out the new JS features coming with ES6/ES2015Scratch JS also supports CoffeeScript, LiveScript and more compile-to-JS languages will be added soonScratch JS as a Google Chrome Extention:Syntax is nothing but a set of rules for writing programs. A TypeScript program simply composed of:
container to store/hold the data/informationname of the storage location (named containers/named storage) for datavar, let, and constvar Variable Declarationsvar keywordvar)var and scope are tricky, they hoist also it has global and functional scope but not block level scopecan be re-declared n number of timesassignment operator (=) is used to assign value to a variable, like this: var varName = value; or var firstName = 'JavaScript';box or an envelope which we use to organize various kinds of stuff and put a label on each box or an envelopeMaths & Algebra: x = 10; and in JavaScript we write var x = 10;Syntax & Example:
Typescript
export {};
var name: string = 'Dinanath';
var age: number = 35;
var isDeveloper: boolean = true;
console.log('My details are : ' + name + ' ' + age + ' ' + isDeveloper);
var name = 'Dino';
console.log('My name is : ' + name);
let Variable Declarationslet and const keyword-based variableslet and const variables have block level scope also they can not be re-declared multiple timesdeal with scope in JavaScript we have new keyword named let used to declare variablescreate block scoping in JavaScript in locations where we weren't able to do so before Let keyword block scope - let keyword variables exist only inside block { }scopenever hoisted)can not be re-declaredSyntax & Example:
Typescript
export {};
let name: string = 'Dinanath';
let age: number = 35;
let isDeveloper: boolean = true;
console.log('My details are : ' + name + ' ' + age + ' ' + isDeveloper);
// let variables not be re-declared
// let name: string = 'Dino';
const Variable Declarations (also known as "immutable variables")let and const keyword-based variableslet and const variables have block level scope also they can not be re-declared multiple timesconst an alternative for declaring variablesconstant allows us to set constant variables which shouldn't be reassignedfixed set of values also to protect the values of certain variablesTypeError, SyntaxErrorvariable with read-only constantswhile declaration/initializednot to change/re-assigned in futureblock scopenever hoistedSyntax & Example:
Typescript
export {};
//const name; //error - const must have some value `while declaration/initialized`
// const name;
const name: string = 'Dinanath';
console.log('My name is : ' + name );
//error - const value is fixed, `not to change/re-assigned` in future
// const name: string = 'Dino';
one time assignments (fixed value, not changed in future) use constvalue updation requires use letconst name='Dinanath';let name;immutable, not changeable variablesmutable, can be changed or re-assigned: Type after the name of the variable, parameter or property, It is advisable to use annotation method to specify data type while declaring the variable (Example: let firstName: string = 'Dinanath') Type annotation method helps to eliminate any errors related to variable data type mismatchany data type is the supertype of all types in TypeScript which denotes a dynamic typeSyntax & Example:
Typescript
export {};
let isCompleted: boolean = false;
let id: number = 101;
let firstName: string = 'Dinanath';
let lastName: string = 'Jayaswal';
console.log(`User Details: ${firstName} ${lastName} ${isCompleted} ${id} `)
let fullName;
function showFullName(_fn: string ,_ln: string ) {
let fullName = _fn + ' ' + _ln;
console.log(`My FullName: ${fullName}`);
}
showFullName('Dino','Jas');
anyanyany type can hold value with any data type (like the first variable holds string than assign number or boolean type) any there is no compile-time checkingany data type is the supertype of all types in TypeScript which denotes a dynamic typeSyntax & Example:
Typescript
let data1:string = 'Data1'
//error - string type can not accept number or other data
// data1 = 50;
// any data type variable can store any type of value, there are no data checking
let data2:any = 'Data2';
data2 = 50;
data2 = true;
data2 = ['Hi','Hey','Good','Hello'];
console.log(data2);
arraySyntax & Example:
Typescript
export {};
let arrFrameworks: string [] = ['JavaScript','jQuery','Angular','React'];
console.log('arrFrameworks:',arrFrameworks);
let arrLanguages: Array<string> = ['C','C++','Java','Ruby','Phthon'];
console.log('arrLanguages',arrLanguages);
Tuples which can store multiple data types based values(multiple types of values in one collection/collection of values of various types)Syntax & Example:
Typescript
export {};
let arrFrameworksDetails: [string,number] = ['JavaScript',7.0];
console.log('arrFrameworksDetails:',arrFrameworksDetails);
console.log('arrFramework Name:',arrFrameworksDetails[0]);
console.log('arrFramework version:',arrFrameworksDetails[1]);
enum variableName keywordSyntax & Example:
Typescript
export {};
enum RGBColor { Red, Green, Blue };
console.log('RGBColor:', RGBColor);
console.log('RGBColor.Green:', RGBColor.Green);
let colorBlue: RGBColor = RGBColor.Blue;
console.log('colorBlue:', colorBlue);
enum Cities1 { Mumbai = 10, Delhi = 20, Kolkata = 30, Chennai = 40, Bangalore = 50 }
console.log('Cities:', Cities1);
console.log('Bangalore:',Cities1.Bangalore);
enum Cities2 { Mumbai = 'M', Delhi = 'D', Kolkata = 'K', Chennai = 'C', Bangalore = 'B' }
console.log('Cities:', Cities2);
console.log('Bangalore:',Cities2.Bangalore);
not assignable)Syntax & Example:
Typescript
export {};
let details; //data type not infered
console.log('type of details:', typeof(details));
let cityName = 'Human'; // hover on cityName to check type details let cityName: string
console.log('type of cityName:', typeof(cityName));
//Error - Type '90' is not assignable to type 'string'.ts(2322), cant assign number to string data type
//cityName = 90
as keyword is used for Type Assertion, or before value specify the typeSyntax & Example:
Typescript
export {};
let id = 100;
let employeeID = <number> id;
let name = 'Dinanath';
let fName = 'Dinanath';
console.log('fName data type:',typeof(fName));
fName = fName as string;
console.log('fName data type:',typeof(fName));
? question mark symbolSyntax & Example:
Typescript
export {};
// specify data types of parameters
function sum(num1: number, num2: number) {
console.log(num1 + num2);
}
sum(10, 20);
//error - only numbers allowed
// sum('one','two');
// specify data types of parameters as well function return type
function showGreetings(message: string): string {
return message;
}
let message1 = showGreetings('Welcome to Typescript');
console.log(message1);
Syntax & Example:
Typescript
export { };
// specify data types of parameters, use ? to denote optional parameters
function sum(num1: number, num2?: number) {
if (num2) {
console.log(num1 + num2);
} else {
console.log(num1);
}
}
sum(10, 20);
sum(100);
Syntax & Example:
Typescript
export { };
// specify data types of parameters, use ? to denote optional parameters, one can also specify default values
function sum(num1: number, num2: number = 50) {
console.log(num1 + num2);
}
sum(10, 20);
sum(100);
interface keyword is used to declare an interface? question mark sign (city?: string)Syntax & Example:
Typescript
export {};
interface Person {
firstName: string;
lastName: string;
age?: number
}
function showDetails (_person: Person) {
console.log(`Person Details: ${_person.firstName} ${_person.lastName} ${_person.age}`);
}
let person1 = {
firstName: 'Dinanath',
lastName: 'Jayaswal',
}
showDetails(person1);
let person2 = {
firstName: 'Dino',
lastName: 'J.',
age: 40
}
showDetails(person2);
extends keyword and main class properties and method can be accessed with super keywordSyntax & Example:
Typescript
export {};
class Greetings {
personName: string;
constructor(name: string) {
this.personName = name;
}
showGreet() {
console.log(`Welcome, have a great Day ${this.personName}!`)
}
}
let person1 = new Greetings('Dinanath');
console.log('person1.personName:',person1.personName);
person1.showGreet();
Syntax & Example:
Typescript - class based inheritance
// class-based inheritance
class Person extends Greetings {
constructor (pName: string) {
super(pName);
}
doTask() {
console.log('Person doing some task');
}
}
let person1 = new Person('Sagar');
console.log('person1.name:',person1.name);
person1.showGreet();
person1.doTask();
Syntax & Example:
Typescript
export {};
class Greetings {
public name: string;
private privateName: string;
protected protectedName: string;
constructor(_name: string) {
this.name = _name;
}
showGreet() {
console.log(`Welcome, have a great Day ${this.name}!`)
}
}
let greet1 = new Greetings('Dinanath');
console.log('greet1.name:',greet1.name);
greet1.showGreet();
// error - private property/variable not available outside
// console.log(greet1.privateName);
console.log(`// ------------------------------`);
// class-based inheritance
class Person extends Greetings {
constructor (pName: string) {
super(pName);
}
doTask() {
console.log('Person doing some task');
// error - private property/variable not available outside
// console.log(greet1.privateName);
// protected property/variable can be accessed in derived/child class
console.log('this.protectedName:',this.protectedName);
}
}
let person1 = new Person('Sagar');
console.log('person1.name:',person1.name);
person1.showGreet();
person1.doTask();
@expression, where expression must evaluate to a function that will be called at runtime with information about the decorated declarationexperimentalDecorators compiler option either on the command line or in tsconfig.json:tsc --target ES5 --experimentalDecorators{
"compilerOptions": {
"target": "ES5",
"experimentalDecorators": true
}
}
@ (at the rate sign)Syntax & Example:
Typescript
@Component({
selector: 'user',
templateUrl: 'user.component.html',
styleUrls: ['user.component.scss']
})
Many Congratulations! You have done it. Thank you for joining me for Typescript fundamentals for beginners. I hope you will start checking/testing and incorporating these features into your code right away. I hope now you have a solid understanding of Typescript new features and usability. Your next step could be looking into Typescript documentation. Now you are fully up to date and set to start with any latest javascript framework/library like Angular, React, Node, Vue.
dinanathsj29/typescript-tutorial is a public repo on GitHub by dinanathsj29. A Typescript fundamentals tutorials for beginners, An introduction & step-by-step guide to Typescript language latest features in combination with ECMAScript 5,6,7.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker tagged it for Windows. That is declared by the maker; Take My Repo has not tested it.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2019-08-10. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.


Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

A JavaScript tutorials for beginners, An introduction to JavaScript programming languages building blocks, step-by-step guide to JavaScript

Lets go-through, learn and understand different logical Javascript exercises and algorithms for beginners.

A HTML5 tutorials for beginners, An introduction to HTML5 building blocks, step-by-step guide to HTML5

A Web concepts tutorials for beginners, An introduction to Web Design Development core terminologies and fundamentals
Learn to write Unit Testing and Integration Testing of Angular application for multiple types of components, directives, dependencies, routers and services.

A CSS3 design tutorials for beginners, An introduction to core CSS concepts, terminology and tools
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/dinanathsj29/typescript-tutorialTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.