Skip to content

Combinator

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

hkt-toolbelt / Combinator

Namespace: Combinator

Interfaces

Type Aliases

_$fixSequence

Ƭ _$fixSequence<KIND, VALUE, STATE, NEXT_VALUE, NEXT_STATE, DONE>: DONE extends true ? STATE : _$fixSequence<DONE extends false ? KIND : never, _$cast<NEXT_VALUE, _$inputOf<KIND>>, NEXT_STATE>

Type parameters

Name Type
KIND extends Kind
VALUE extends _$inputOf<KIND>
STATE extends unknown[] = [VALUE]
NEXT_VALUE $<KIND, VALUE>
NEXT_STATE extends unknown[] = [...STATE, NEXT_VALUE]
DONE extends boolean = NEXT_VALUE extends VALUE ? true : false

Defined in

combinator/fix-sequence.ts:3

Clone this wiki locally