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




``` Hack
public function addAfterType(
  Facebook\HackCodegen\CodegenType $type,
): this;
```




## Parameters




- [` Facebook\HackCodegen\CodegenType `](<class.Facebook.HackCodegen.CodegenType.md>)`` $type ``




## Returns




+ ` this `