Clarify that int and decimal bigInt, bigDecimal (#2608)
fix [#2396](https://github.com/microsoft/typespec/issues/2396)
This commit is contained in:
Родитель
dc95c54a0f
Коммит
6eab70c9bc
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@typespec/compiler",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@typespec/compiler"
|
||||
}
|
|
@ -186,7 +186,8 @@ scalar bytes
|
|||
|
||||
### `decimal` {#decimal}
|
||||
|
||||
A decimal number with any length and precision.
|
||||
A decimal number with any length and precision. This represent any `decimal` value possible.
|
||||
It is commonly represented as `BigDecimal` in some languages.
|
||||
|
||||
```typespec
|
||||
scalar decimal
|
||||
|
@ -286,7 +287,8 @@ scalar int8
|
|||
|
||||
### `integer` {#integer}
|
||||
|
||||
A whole number
|
||||
A whole number. This represent any `integer` value possible.
|
||||
It is commonly represented as `BigInteger` in some languages.
|
||||
|
||||
```typespec
|
||||
scalar integer
|
||||
|
|
|
@ -11,7 +11,8 @@ scalar bytes;
|
|||
scalar numeric;
|
||||
|
||||
/**
|
||||
* A whole number
|
||||
* A whole number. This represent any `integer` value possible.
|
||||
* It is commonly represented as `BigInteger` in some languages.
|
||||
*/
|
||||
scalar integer extends numeric;
|
||||
|
||||
|
@ -76,7 +77,8 @@ scalar float64 extends float;
|
|||
scalar float32 extends float64;
|
||||
|
||||
/**
|
||||
* A decimal number with any length and precision.
|
||||
* A decimal number with any length and precision. This represent any `decimal` value possible.
|
||||
* It is commonly represented as `BigDecimal` in some languages.
|
||||
*/
|
||||
scalar decimal extends numeric;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче