Skip to content

Commit

Permalink
doc: add documentation for integer/string literal values
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed May 9, 2022
1 parent 9856c41 commit 6e6b974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,12 @@ final class SomeClass

/** @var array<SomeInterface|AnotherInterface> */
private array $unionInsideArray,

/** @var 42|1337 */
private string $unionOfIntegerValues,

/** @var 'foo'|'bar' */
private string $unionOfStringValues,
) {}
}
```
Expand Down

0 comments on commit 6e6b974

Please sign in to comment.