Creating a schema struct for an interface with a function property in Effect Typescript

I have an interface like this

interface MyInterface {
  name: string;
  compute: (...args: unknown[]): unknown;
}


How would I turn this into a schema struct? There doesn't seem to be a callable/function schema type. Perhaps it's just not the right use case for a schema? I just want to enforce that a consumer passes in data in the correct shape, e.g classes that implement MyInterface or objects corresponding to the same shape.
Was this page helpful?