MAKE NODEJS APIs GREAT WITH TYPESCRIPT
[Pages:29]MAKE NODEJS APIs GREAT WITH TYPESCRIPT
ABOUT ME
I really like my work, software engineering never makes me bored, always keeps in learning and improving mood.
dmytro.zharkov@
NODEJS REPUTATION FRONT-END DEVELOPERS
NodeJS
What's wrong with NodeJS APIs? Dynamic VS strong typing Pure OOP model of JS No of access modifiers No hypermedia in RESTful APIs Lack of documentation Design and structure
4
TYPESCRIPT FOR A RESQUE
TYPE SYSTEM
INTERFACES
DECORATORS
ACCESS MODIFIERS
GENERICS
ABSTRACT CLASSES
TYPES TRIPLET
TYPE ALIASES
public port: number;
INTERFACES
protected server: http.Server;
CLASSES
public article: Article;
LET'S COMPARE
TYPE ALISES
Primitive types (number, string, boolean) and reference types (Object).
Can't be extended
INTERFACES
Reference types only Can be extended Signature not implementation
CLASSES
Reference types only Can be extended Signature and implementation
interface BaseArticle { SKU: string, name: string, type: string, price: Price }
export default BaseArticle;
INTERFACES
interface FashionArticle extends BaseArticle { size: Sizes, color: Colors }
export default FashionArticle;
import { Document } from "mongoose";
interface FashionArticleModel extends FashionArticle, Document {}; export default FashionArticleModel;
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- » architecture server side javascript for backends api
- typescript stanford university
- and express
- learning the basics of node
- intro cheatsheetto databas es
- javascript interview questions answers
- make nodejs apis great with typescript
- build a bookstore using javascript nodejs and mongodb
- typescript notes for professionals
- expressjs tutorialspoint
Related searches
- how to make a great resume
- make a word search with these letters
- make money from home with a computer
- 7 things that make great bosses unforgettable
- how to make great coffee at home
- great lakes make a payment
- make a word search with these words
- make a word find with these letters
- what make a great teacher
- make great things happen
- typescript new object with values
- make older programs work with windows 10