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

https://github.com/wzc520pyfm/utype

Collection of typescript utility types that extends the official utility types.
https://github.com/wzc520pyfm/utype

type-helper type-ts types typescript utility-types utiltity utype

Last synced: about 1 month ago
JSON representation

Collection of typescript utility types that extends the official utility types.

Awesome Lists containing this project

README

          

## 🦄 Usage

```ts
import type { Mutable } from '@utype/core'

type Props = { readonly name: string; }

// Expect: { name: string }
type MutableProp = Mutable
```

## 📦 Install

```bash
npm i @utype/core
```

## ✨ Types

### 🚀 Object Operation

Mutable
DeepMutable
DeepReadonly
DeepPartial
DeepRequired

### 🚀 X Series

MutableX
PartialX
RequiredX
ReadonlyX
DeepReadonlyX

### 🚀 Merge Object

Merge
MergeAll

### 🚀 Basic Operation

TwoTuple
Nullable
NonUndefined
OmitNever
UnionToIntersection
OptionalTupleLast
RecordToUnion

### 🚀 Get Object Keys

ReadonlyKeys
MutableKeys
RequiredKeys
PartialKeys
FunctionKeys
NonFunctionKeys
ObjectKeys
NonObjectKeys

### 🚀 Generate Object

PickByType
PickByTypeFuzzy
PickByTypeExact
OmitByType
OmitByTypeFuzzy
OmitByTypeExact
Diff
Intersection
PickByRequired

### 🚀 String Operation

KebabCase
SnakeCase
CamelCase
PascalCase

### 🚀 Function

Curried

### Vue Reactive

ToMaybeRefOrGetters
ToMaybeRefOrGettersForNonFunction
ToEmitsForEvents

## 🥰 Contributors