text: ---
  layout: docs
  title: addBeforeTypes
  id: class.Facebook.HackCodegen.CodegenFile.addBeforeTypes
  docid: class.Facebook.HackCodegen.CodegenFile.addBeforeTypes
  permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFile.addBeforeTypes/
  ---
  # Facebook\\HackCodegen\\CodegenFile::addBeforeTypes()
  
  
  
  
  ``` Hack
  public function addBeforeTypes(
    Traversable<Facebook\HackCodegen\CodegenType> $types,
  ): this;
  ```
  
  
  
  
  ## Parameters
  
  
  
  
  - ` Traversable<Facebook\HackCodegen\CodegenType> $types `
  
  
  
  
  ## Returns
  
  
  
  
  + ` this `