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
- make nodejs apis great with typescript
- suricata tutorial carnegie mellon university
- table of contents
- tools in action visual studio code
- esri geodev webinar series using typescript with the
- typescript notes for professionals
- developing a restful web application for liberty in cics
- migrating from javascript to typescript
- schemas and types for json data
- typescript parse json string
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