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




``` Hack
public function newType(): this;
```




## Returns




+ ` this `