---
layout: docs
title: setReturnTypef
id: class.Facebook.HackCodegen.CodegenFunctionish.setReturnTypef
docid: class.Facebook.HackCodegen.CodegenFunctionish.setReturnTypef
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFunctionish.setReturnTypef/
---
# Facebook\\HackCodegen\\CodegenFunctionish::setReturnTypef()




``` Hack
public function setReturnTypef(
  HH\Lib\Str\SprintfFormatString $type,
  mixed ...$args,
): this;
```




## Parameters




* ` HH\Lib\Str\SprintfFormatString $type `
* ` mixed ...$args `




## Returns




- ` this `