Seeking Equivalent to InstanceOf in Effect Schema Library for Class Validation

Hi, I am trying to create a schema with effect/schema as such:
class Id {
  ...
}

const identifiableEntitySchema = S.Struct({
  id: S.InstanceOf(Id)
});

But InstanceOf doesn't exist in the effect schema library - I was wondering if there was an equavalent to InstanceOf that I could use, as the arg I'm passing (Id in this case) is a class.
Was this page helpful?