#TS type speculation/experimentation: A way to "carry over" types in a pipeline; function to function

4 messages · Page 1 of 1 (latest)

undone badge
#

One message removed from a suspended account.

timid riverBOT
#
Giraffe#0925

Preview:```ts
type KitEvent = {
locals: Record<any, any>
}

type KitResponse = {}

type Fn<E extends KitEvent, R> = (
event: E,
n: R
) => KitResponse | void

function pipe<
A extends KitEvent,
B extends KitEvent,
C extends KitEvent,
D ex
...```

undone badge
#

One message removed from a suspended account.

#

One message removed from a suspended account.