Open Uzlopak opened 2 hours ago
Perhaps: expectType<'GET'>(b)
?
But just like expectError(b === 1)
these lines only proof that TypeScript works as expected. I understand the example you provided is simplified. It made me curious: what are you trying to test?
Currently implementing something for fastify, which can be simplified to:
And yes I could do
but it is less expressive imho