fix flow-strip-types/flow-comments removing entire ClassProperty (#4587)

This commit is contained in:
Dan Harper
2016-09-28 17:25:33 +01:00
committed by Daniel Tschinder
parent 5ea57d5e9c
commit 8709899b42
7 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class X {
foo = 2
bar: number = 3
baz: ?string
}

View File

@@ -0,0 +1,5 @@
class X {
foo = 2;
bar /*: number*/ = 3;
baz /*: ?string*/;
}

View File

@@ -0,0 +1,6 @@
{
"plugins": [
"transform-flow-comments",
"syntax-class-properties"
]
}