It seems that I am facing some challenges with this task and the reason is unclear to me
switch (typeof request) {
case 'EnrollmentRequest':
The type '"EnrollmentRequest"' cannot be compared to the type '"string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function"'
However, my goal is to
switch (typeof request) {
case type(EnrollmentRequest):
so that I can receive type hints in PhpStorm