renamed defineType -> defineInputType