I'm sorry for being such a noob, it's my first question here hahah, I'm also brand new to Typescript.
Basically I need to make this custom Type for a parameter I get when requesting my API endpoint which points to this searchModel() function through a route router.post('/search', searchModel)
P.S.: why Number isn't the same as number?
Domainl was a typo, Domain is also a custom type I will edit the question so that it's included.