Effect CommunityEC
Effect Community2y ago
6 replies
Jonathan Clem

Assigning Non-Schema Interface to Schema Property in TypeScript

If I have an external interface Foo that is not a schema, and I just want to say that some property on a schema is a Foo—without caring about verifying it—is there an API for this?

const MySchema = S.Struct({
  id: S.String(),
  foo: S.BlahBlah<Foo>(),
})


Or something?
Was this page helpful?