Fix the return type for chanTypes