Schema.Schema<Type, any, any> is used as type of a function argument, there is problem to pass a Schema to it, due to readonly nature of schema.Schema.Schema<any, any, any> because one purpose of that function is to compare type of the schema to some other type from elsewhere.