Clarify that int and decimal bigInt, bigDecimal (#2608)

fix [#2396](https://github.com/microsoft/typespec/issues/2396)
This commit is contained in:
Timothee Guerin 2023-11-01 08:26:14 -07:00 коммит произвёл GitHub
Родитель dc95c54a0f
Коммит 6eab70c9bc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 18 добавлений и 4 удалений

Просмотреть файл

@ -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;