# @mike-north/types

> TypeScript types/interfaces I often use for small libraries

Latest version **1.4.1** (published 2021-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mike-north/types
pnpm add @mike-north/types
yarn add @mike-north/types
bun add @mike-north/types
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2021-09-01 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | 8.11 - 8.17 \|\| 10.* \|\| >= 12 |
| Dependencies | 0 |
| Unpacked size | 148.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 99 |
| Maintainers | northm, mike-north-bot, suchitadoshi1987 |

## Links

- npm: https://www.npmjs.com/package/@mike-north/types
- Repository: https://github.com/mike-north/types
- npm.io page: https://npm.io/package/@mike-north/types

## Recent versions

- 1.4.1 (latest) — 2021-09-01
- 1.4.0 — 2021-04-25
- 1.3.2 — 2020-02-04
- 1.3.1 — 2020-02-04
- 1.3.0 — 2020-02-04
- 1.2.2 — 2020-02-03
- 1.2.1 — 2020-02-02
- 1.2.0 — 2019-02-25
- 1.1.0 — 2019-01-14
- 1.0.7 — 2018-11-04
- 1.0.6 — 2018-08-03
- 1.0.5 — 2018-08-02
- 1.0.4 — 2018-07-30
- 1.0.3 — 2018-07-30
- 0.0.0-development — 2018-07-30

## README

# @mike-north/types

![Node.js CI (master)](https://github.com/mike-north/types/workflows/Node.js%20CI%20(master)/badge.svg)
[![Version](https://img.shields.io/npm/v/@mike-north/types.svg)](https://www.npmjs.com/package/@mike-north/types)

TypeScript `type`s, `interface`s and `class`es I often use.

## Types

- **[`Deferred<T>`](https://github.com/mike-north/types/blob/master/src/async.ts)** - An abstraction of "work in progress". An inverted `Promise<T>`
- **[`ConstructorArgs<T>`](https://github.com/mike-north/types/blob/master/src/classes.ts)** - Extract the arguments from a class constructor
- **[`AsyncMethodReturns<T>`](https://github.com/mike-north/types/blob/master/src/functions.ts)** - Promisify the return values of all methods on a type <T>
- **[`ExtractPropertyNamesOfType<T, S>`](https://github.com/mike-north/types/blob/master/src/objects.ts)** - Create a string literal type, representing the names of all properties on a type T whose values are assignable to S
- **[`RequiredProps<T, S>`](https://github.com/mike-north/types/blob/master/src/objects.ts)** - Make properties whose names are assignable to S on object T required
- **[`OptionalProps<T, S>`](https://github.com/mike-north/types/blob/master/src/objecst.ts)** - Make properties whose names are assignable to S on object T optional
- **[`OptionalPropertyNamesOf<T>`](https://github.com/mike-north/types/blob/master/src/objects.ts)** - Get the names of optional properties of T
- **[`RequiredPropertyNamesOf<T>`](https://github.com/mike-north/types/blob/master/src/objects.ts)** - Get the names of required properties of T

(c) 2018 Mike North

---
_Source: https://npm.io/package/@mike-north/types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
