Options
All
  • Public
  • Public/Protected
  • All
Menu

Module mapped

Type aliases

Class

Class<T>: object

Type parameters

  • T

Type declaration

Conditional

Conditional<Dispatcher, Expectation, Truthy, Falsy>: Dispatcher extends Expectation ? Truthy : Falsy

Type parameters

  • Dispatcher

  • Expectation

  • Truthy

  • Falsy

DotKeyOf

DotKeyOf<T>: Exclude<keyof T, symbol | number> | string

Type parameters

  • T

EitherField

EitherField<T, TKey>: TKey extends keyof T ? { [P in TKey]-?: T[TKey]} & Partial<Record<Exclude<keyof T, TKey>, never>> : never

Type parameters

  • T

  • TKey: keyof T

MaybePromise

MaybePromise<T, B>: object[B]

Type parameters

  • T

  • B: "plain" | "promise"

Mutable

Mutable<T>: { -readonly[P in keyof T]: T[P]}

Type parameters

  • T

MutableSome

MutableSome<T, K>: { -readonly[P in K]: T[P]}

Type parameters

  • T

  • K: keyof T

NoDefinedProperties

NoDefinedProperties<K>: { [P in K]: never}

Type parameters

  • K: keyof any

NoDefinedPropertiesFrom

NoDefinedPropertiesFrom<T, K>: { [P in K]: never}

Type parameters

  • T

  • K: keyof T

Nullable

Nullable<T>: T | null

Type parameters

  • T

OneOf

OneOf<T>: Xor<Tuplize<T>>

Type parameters

Optional

Optional<T>: Undefinable<T>

Type parameters

  • T

PartialSome

PartialSome<T, K>: Omit<T, K> & Partial<T>

Type parameters

  • T

  • K: keyof T

RequireAtLeastOne

RequireAtLeastOne<T, Keys>: Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>}[Keys]

Type parameters

  • T

  • Keys: keyof T

RequireOnlyOne

RequireOnlyOne<T, Keys>: Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>}[Keys]

Type parameters

  • T

  • Keys: keyof T

RequireSome

RequireSome<T, K>: Omit<T, K> & { [MK in K]-?: NonNullable<T[MK]>}

Type parameters

  • T

  • K: keyof T

Tuplize

Tuplize<T>: Pick<T, Exclude<keyof T, Extract<keyof ObjMap[], string> | number>>

Type parameters

Undefinable

Undefinable<T>: T | undefined

Type parameters

  • T

Values

Values<T>: T[keyof T]

Type parameters

Voidable

Voidable<T>: T | void

Type parameters

  • T

Xor

Xor<T>: Values<{ [K in keyof T]: T[K] & { [M in Values<{ [L in keyof Omit<T, K>]: keyof T[L]}>]?: undefined}}>

Type parameters