Skip to content

Latest commit

 

History

History
95 lines (68 loc) · 6.59 KB

README.md

File metadata and controls

95 lines (68 loc) · 6.59 KB

🦄 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 ToEmitsForEvents

🥰 Contributors