Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jfollmann/declaration-merging-ts

Sample to use Declaration Merging with Typescript
https://github.com/jfollmann/declaration-merging-ts

axios declaration-merging module-argumentation nodejs typescript

Last synced: 15 days ago
JSON representation

Sample to use Declaration Merging with Typescript

Awesome Lists containing this project

README

        

# Declaration Merging TS
This project aims to demonstrate the use of the declaration merging feature of typescript.
Each example demonstrates a way to implement a time counter for requests executed with axios.
The last example (sample03.ts), defines extended properties for the axios from declaration merging.
This project was created for study purposes only.

[Typescript Documentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html)

## Install Dependencies:
```bash
npm i
```

## Run samples:
```bash
npm run run:01
```

```bash
npm run run:02
```

```bash
npm run run:03
```