I am making multi type handler structure where each handler has specific item it supports. Then there is main registry which holds all handlers and you can get each specific handler, but I would like to get the handler through main registry instead of getting type handler and then getting handler, it works in some way but I am loosing ability to set specific type to returned handler.
Is it possible or I am asking too much from Typescript? 😄