[7.0] Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#5229)

This commit is contained in:
Charles Pick
2017-02-15 19:54:27 +00:00
committed by Henry Zhu
parent b3e208fcd0
commit bc8f476d33
4 changed files with 10 additions and 10 deletions

View File

@@ -183,7 +183,7 @@ export function NullableTypeAnnotation(node: Object) {
}
export {
NumericLiteral as NumericLiteralTypeAnnotation,
NumericLiteral as NumberLiteralTypeAnnotation,
StringLiteral as StringLiteralTypeAnnotation,
} from "./types";

View File

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

View File

@@ -179,7 +179,7 @@ defineType("NullableTypeAnnotation", {
}
});
defineType("NumericLiteralTypeAnnotation", {
defineType("NumberLiteralTypeAnnotation", {
aliases: ["Flow"],
fields: {
// todo