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

hkt-toolbelt / Kind

Namespace: Kind

Classes

Interfaces

Type Aliases

_

Ƭ _: typeof _

Defined in

kind/kind.ts:3

kind/kind.ts:5


_$composable

Ƭ _$composable<FX>: _$every<ComposablePair, _$pair<FX>>

Type parameters

Name Type
FX extends Kind[]

Defined in

kind/composable.ts:3


_$compose

Ƭ _$compose<FX, X>: FX extends [...(infer Init), infer Last] ? _$compose<_$cast<Init, Kind[]>, $<_$cast<Last, Kind>, _$cast<X, _$inputOf<_$cast<Last, Kind>>>>> : X

Type parameters

Name Type
FX extends Kind[]
X X

Defined in

kind/compose.ts:3


_$inputOf

Ƭ _$inputOf<F>: F extends { f: (x: infer X) => unknown } ? X : unknown

Type parameters

Name Type
F extends Kind

Defined in

kind/input-of.ts:3


_$outputOf

Ƭ _$outputOf<F>: F extends { f: (x: never) => infer X } ? X : unknown

Type parameters

Name Type
F extends Kind

Defined in

kind/output-of.ts:3


_$pipe

Ƭ _$pipe<FX, X>: _$compose<_$reverse<FX>, X>

Type parameters

Name Type
FX extends Kind[]
X X

Defined in

kind/pipe.ts:3


_$reify

Ƭ _$reify<K>: K & <X>(x: _$infer<X, _$cast<X, _$inferred>> | _$infer<X, [..._$cast<X, _$inferredTuple>[]]>) => _$returnType<K & { [_]: X }["f"]> extends Kind<Function> ? _$reify<_$returnType<(K & { readonly [Kind._]: X; })["f"]>> : _$returnType<K & { [_]: X }["f"]>

Type parameters

Name Type
K extends Kind

Defined in

kind/reify.ts:3

Variables

_

Const _: unique symbol

Defined in

kind/kind.ts:3

kind/kind.ts:5

Clone this wiki locally