Effect CommunityEC
Effect Community3y ago
10 replies
Jérôme MARTIN

Understanding the "FilterIn" Type in Unify.ts

Probably a beginner's question:
I am slowly diving into the depths of Effect and in Unify.ts, I saw this:
type FilterIn<A> = A extends any ? typeSymbol extends keyof A ? A : never : never

I have been scratching my head for 2 days, have read and reread Typescript's docs. I still can't figure out when A extends anycould not be true?
Was this page helpful?