Checking if a Schema is a Class in TypeScript - Effect Community