#TS type speculation/experimentation: A way to "carry over" types in a pipeline; function to function
4 messages · Page 1 of 1 (latest)
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
...```
You can choose specific lines to embed by selecting them before copying the link.