-
Notifications
You must be signed in to change notification settings - Fork 10
Combinator
Michael Poteat edited this page Feb 27, 2023
·
3 revisions
hkt-toolbelt / Combinator
Ƭ _$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
>
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
|