Clean changelog_unreleased
This commit is contained in:
1 parent
1ce8c47015
commit
a848b9ec5f
1 file changed
-19
@@ -1,19 +0,0 @@
|
||||
#### Support `readonly` as a variance annotation (#19022 by @marcoww6)
|
||||
|
||||
Flow now accepts `readonly` as a property variance annotation, equivalent to `+` (covariant/read-only).
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
type T = {
|
||||
readonly foo: string,
|
||||
};
|
||||
|
||||
// Prettier stable
|
||||
SyntaxError
|
||||
|
||||
// Prettier main
|
||||
type T = {
|
||||
readonly foo: string,
|
||||
};
|
||||
```
|
||||
Reference in new issue
Block a user