arktypea
arktype8mo ago
Tim

Pipe generic types

I'm trying to extract a generic type, but it seems like it's not possible, or am I mistaken?

What I'm trying to do is to extract a generic property
const genericType = type("<t>", {jsonValue:"t"}).pipe(({jsonValue}) => jsonValue)

But pipe does not exist on Generic
Was this page helpful?