Skip to content
Michael Poteat edited this page Feb 27, 2023 · 3 revisions

hkt-toolbelt / Object

Namespace: Object

Interfaces

Type Aliases

_$at

Ƭ _$at<K, T>: T[K]

Type parameters

Name Type
K extends keyof T
T extends Record<string, unknown>

Defined in

object/at.ts:3


_$atPath

Ƭ _$atPath<Path, T>: Path extends [infer Head, ...(infer Tail)] ? Tail extends [] ? Head extends keyof T ? T[Head] : never : _$atPath<_$cast<Tail, (string | symbol)[]>, T[_$cast<Head, keyof T>]> : never

Type parameters

Name Type
Path extends (string | symbol)[]
T T

Defined in

object/at-path.ts:3


_$deepInputOf

Ƭ _$deepInputOf<F>: _$inputOf<F> | { [key: string]: _$deepInputOf<F>; }

Type parameters

Name Type
F extends Kind

Defined in

object/deep-input-of.ts:3


_$deepMapValues

Ƭ _$deepMapValues<F, O>: { [key in keyof O]: _$display<O[key] extends Record<string, unknown> ? _$deepMapValues<F, O[key]> : $<F, _$cast<O[key], _$inputOf<F>>>> }

Type parameters

Name Type
F extends Kind
O O

Defined in

object/deep-map-values.ts:3


_$emplace

Ƭ _$emplace<K, V>: { [k in K]: V }

Type parameters

Name Type
K extends string | number | symbol
V V

Defined in

object/emplace.ts:3


_$keys

Ƭ _$keys<T>: _$toList<keyof T>

Type parameters

Name Type
T extends Record<string, unknown>

Defined in

object/keys.ts:3


_$mapKeys

Ƭ _$mapKeys<T, F>: { [key in keyof T as $<F, _$cast<key, _$inputOf<F>>>]: T[key] }

Type parameters

Name Type
T extends Record<string, unknown>
F extends Kind<(x: string) => string | number | symbol>

Defined in

object/map-keys.ts:3


_$mapValues

Ƭ _$mapValues<T, F>: { [key in keyof T]: $<F, _$cast<T[key], _$inputOf<F>>> }

Type parameters

Name Type
T extends Record<string, unknown>
F extends Kind

Defined in

object/map-values.ts:3


_$merge

Ƭ _$merge<A, B>: _$display<{ [K in keyof A | keyof B]: K extends keyof B ? B[K] : K extends keyof A ? A[K] : never }>

Type parameters

Name Type
A extends Record<string, unknown>
B extends Record<string, unknown>

Defined in

object/merge.ts:3


_$paths

Ƭ _$paths<T, U>: _$toList<U extends [] ? never : U>

Type parameters

Name Type
T T
U _$paths2<T>

Defined in

object/paths.ts:11


_$values

Ƭ _$values<T, Keys>: { [key in keyof Keys]: T[_$cast<Keys[key], keyof T>] }

Type parameters

Name Type
T extends Record<string, unknown>
Keys _$keys<T>

Defined in

object/values.ts:4

Clone this wiki locally