Skip to content

This is how to write class with interface in typescript

Notifications You must be signed in to change notification settings

ivandj0h/typescript-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Class

About

TypeScript is an 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. TypeScript is designed for development of large applications and transcompiles to JavaScript and This is a very simple example how to write a Class with interface in typescript.

Getting Started

to getting start using typescript you have to install nodejs on your computer. nodejs installation coming with package manager called npm. by using npm, now you can install typescript into your komputer by typing :

npm install -g typescript

after successfully installed the typescript, you can start with command tsc --init and it would be create tsconfig.json file on your root folder of your application. tsconfig.json file actually is a configuration file that you can use to Transpile TypeScript into JavaScript. for example you can setup the output to es5 or es6 so the browser can execute the code.

Run the typescript

to run the typescript, just typing tsc command followed by tsc file

This Documentation will update continue...

About

This is how to write class with interface in typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published