Typescript & type definition files (.ts, d.ts)
.ts is the standard TypeScript files. The content then will be compiled to JavaScript. *.d.ts is the type definition files that allow…
Design – Plan – Write
.ts is the standard TypeScript files. The content then will be compiled to JavaScript. *.d.ts is the type definition files that allow…
RESTFUL APIs usually give you a set of endpoints to perform CRUD (Create, Read, Update, Delete) actions on different entities.…
Node Package Manager, or npm (usually written in lower case) is one of the most commonly used package managers in…
Type Guards are one of the key features of type-safe code. The TypeScript Handbook describes type guards as: Some expression that performs…
Let´s use the Partial utility type to make all of the properties in a type optional, interface Employee { id: number; name:…
Inheritance is an aspect of OOPs languages, which provides the ability of a program to create a new class from…
What is the difference between extends and implements ? class Media { format: string; } class Video extends Media {} class Image implements…
debounceTime delays the values emitted by a source for the given due time. If within this time a new value arrives,…
Classes and interfaces are powerful structures that facilitate not just object-oriented programming but also type-checking in TypeScript. A class is…
Scenario We currently require fs like this in node: const fs = require('fs'); but When we try to import libraries in a…