Generate return type as part of prototype