Effect CommunityEC
Effect Community2y ago
4 replies
Josiah

Deriving Array Type from Schema Class in TypeScript

If you have something like S.array<typeof Example>> where Example is a schema class. Is there a way to derive the type Example[]? S.Schema.Encoded seems to destructure the class to just the fields.
Was this page helpful?