# io-type

> TypeScript function I/O utility types

Latest version **1.2.0** (published 2021-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install io-type
pnpm add io-type
yarn add io-type
bun add io-type
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-11-19 |
| First published | 2021-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Winton Welsh |
| Maintainers | winton |

## Links

- npm: https://www.npmjs.com/package/io-type
- Repository: https://github.com/winton/io-type
- Homepage: https://github.com/winton/io-type#readme
- Issues: https://github.com/winton/io-type/issues
- npm.io page: https://npm.io/package/io-type

## Recent versions

- 1.2.0 (latest) — 2021-11-19
- 1.1.1 — 2021-11-18
- 1.1.0 — 2021-11-18
- 1.0.3 — 2021-11-18
- 1.0.2 — 2021-11-18
- 1.0.1 — 2021-11-18
- 1.0.0 — 2021-11-18
- 0.2.0 — 2021-11-18
- 0.1.0 — 2021-05-24
- 0.0.12 — 2021-05-12
- 0.0.11 — 2021-05-11
- 0.0.10 — 2021-05-11
- 0.0.2 — 2021-05-10

## README

# 🛠️ io-type

TypeScript function I/O utility types

```bash
npm install --save-dev io-type
```

## 📖 Terminology

| Term | Description |
| :--- | :--- |
| **Function** | Any single-argument function (sync or async) |
| **Input** | *Function* argument |
| **Output** | *Function* return value |
| **Record** | Object with *function* values |

## 👻 Type utilities

### Functions

| Type | Description |
| :--- | :--- |
| `InType<T>` | *Input* type |
| `OutType<T>` | *Output* type |
| `InOutInterType<T>` | Intersection of *input* and *output* type |
| `InOutUnionType<T>` | Union of *input* and *output* type |

### Records

| Type | Description |
| :--- | :--- |
| `RecordInType<T>` | *Record input* types |
| `RecordOutType<T>` | *Record output* types |
| `RecordInUnionType<T>` | *Record input* union type |
| `RecordOutUnionType<T>` | *Record output* union type |
| `RecordInInterType<T>` | *Record input* intersection type |
| `RecordOutInterType<T>` | *Record output* intersection type |

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