3 ms·
You can safely cast an `unknown` to a desired type with a runtime check from a library like Zod (https://zod.dev/ https://zod.dev/). The `unknown` makes sure y
by anderskaseorg 4y ago
You can safely cast an `unknown` to a desired type with a runtime check from a library like Zod (https://zod.dev/ https://zod.dev/). The `unknown` makes sure you don’t forget a check.