Library version: mikro-orm@3.4.0
Problem:
Due to documentation https://mikro-orm.io/docs/custom-types mikro-orm should export ValidationError but it is not exported.
If this is intentional behavior please update documentation and provide other method for throwing TypeError properly when using custom types.