Change a way to pass custom types definitions