Skip to content

wzc520pyfm/utype

Repository files navigation

🦄 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

🥰 Contributors