[7.0] Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#5229)
This commit is contained in:
@@ -183,7 +183,7 @@ export function NullableTypeAnnotation(node: Object) {
|
||||
}
|
||||
|
||||
export {
|
||||
NumericLiteral as NumericLiteralTypeAnnotation,
|
||||
NumericLiteral as NumberLiteralTypeAnnotation,
|
||||
StringLiteral as StringLiteralTypeAnnotation,
|
||||
} from "./types";
|
||||
|
||||
|
||||
@@ -1296,12 +1296,12 @@ Aliases: `Expression`, `Pureish`, `Literal`, `Immutable`
|
||||
|
||||
---
|
||||
|
||||
### numericLiteralTypeAnnotation
|
||||
### numberLiteralTypeAnnotation
|
||||
```javascript
|
||||
t.numericLiteralTypeAnnotation()
|
||||
t.numberLiteralTypeAnnotation()
|
||||
```
|
||||
|
||||
See also `t.isNumericLiteralTypeAnnotation(node, opts)` and `t.assertNumericLiteralTypeAnnotation(node, opts)`.
|
||||
See also `t.isNumberLiteralTypeAnnotation(node, opts)` and `t.assertNumberLiteralTypeAnnotation(node, opts)`.
|
||||
|
||||
Aliases: `Flow`
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ defineType("NullableTypeAnnotation", {
|
||||
}
|
||||
});
|
||||
|
||||
defineType("NumericLiteralTypeAnnotation", {
|
||||
defineType("NumberLiteralTypeAnnotation", {
|
||||
aliases: ["Flow"],
|
||||
fields: {
|
||||
// todo
|
||||
|
||||
Reference in New Issue
Block a user