A handy advanced TypeScript pattern to increase your productivity.