wzc520pyfm / utype

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

Home Page:https://eloquent-froyo-e3f28b.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ¦„ Usage

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

type Props = { readonly name: string; }

// Expect: { name: string }
type MutableProp = Mutable<Prop>

πŸ“¦ Install

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

πŸš€ 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 ToNonFunctionForMaybeRefOrGetters

πŸ₯° Contributors

About

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

https://eloquent-froyo-e3f28b.netlify.app/

License:MIT License


Languages

Language:TypeScript 100.0%