Skip to content

Commit 0bc67f4

Browse files
committed
Clarify that useType isn't just for typedefs
fixes hhvm#73
1 parent 82f50dc commit 0bc67f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/_docs/classes/codegen-file.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ You can set the namespace of the file by calling `->setNamespace($ns)`; you can
3434
- `->useFunction(string $ns, ?string $as = null)`
3535
- `->useConst(string $ns, ?string $as = null)`
3636

37+
`useType` is for any kind of type; this includes `type`s, `newtype`s,
38+
enums, classes, and interfaces.
39+
3740
File Types
3841
----------
3942

0 commit comments

Comments
 (0)