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




Set the type of the constant using a %-placeholder format string




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




## Parameters




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




## Returns




- ` this `