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

https://github.com/chore-dev/utility-types

Collections of utility types
https://github.com/chore-dev/utility-types

inferface type typescript utility utility-type utility-types

Last synced: over 1 year ago
JSON representation

Collections of utility types

Awesome Lists containing this project

README

          

# Utility Types

Collection of utility types

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Documentation](https://chore-dev-utility-types.vercel.app/)

## Installation

```bash
# npm
npm install --save-dev @chore-dev/utility-types
```

```bash
# yarn
yarn add -D @chore-dev/utility-types
```

```bash
# pnpm
pnpm add -D @chore-dev/utility-types
```

## Usage

Using `DeepGetType` as an example:

```typescript
import {DeepGetType} from '@chore-dev/utility-types';

type DeepObject = {
a: {
b: {
c: {
d: string;
};
};
};
};

type DeepType = DeepGetType; // string
```

## Documentation

See [documentation](https://chore-dev-utility-types.vercel.app/) for more details.