Skip to content

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

License

Notifications You must be signed in to change notification settings

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

πŸ₯° Contributors