mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
docs: added positive integer (#4078)
* docs: added positive integer * added to toc
This commit is contained in:
parent
9190571cfc
commit
2375a3b2cd
@ -5,6 +5,7 @@ Atomic types are the basic building block of all type information used in Psalm.
|
|||||||
## [Scalar types](scalar_types.md)
|
## [Scalar types](scalar_types.md)
|
||||||
|
|
||||||
- [int](scalar_types.md)
|
- [int](scalar_types.md)
|
||||||
|
- [positive-int](scalar_types.md#positive-int)
|
||||||
- [float](scalar_types.md)
|
- [float](scalar_types.md)
|
||||||
- [string](scalar_types.md)
|
- [string](scalar_types.md)
|
||||||
- [class-string and class-string<Foo>](scalar_types.md#class-string)
|
- [class-string and class-string<Foo>](scalar_types.md#class-string)
|
||||||
|
@ -10,6 +10,10 @@ The type `scalar` is the supertype of all scalar types.
|
|||||||
|
|
||||||
`array-key` is the supertype (but not a union) of `int` and `string`.
|
`array-key` is the supertype (but not a union) of `int` and `string`.
|
||||||
|
|
||||||
|
### positive-int
|
||||||
|
|
||||||
|
`positive-int` allows only positive integers
|
||||||
|
|
||||||
### numeric
|
### numeric
|
||||||
|
|
||||||
`numeric` is a supertype of `int` or `float` and [`numeric-string`](#numeric-string).
|
`numeric` is a supertype of `int` or `float` and [`numeric-string`](#numeric-string).
|
||||||
|
Loading…
Reference in New Issue
Block a user