Fix class prop test fixture (#6090)

This commit is contained in:
Brian Ng
2017-08-14 09:20:36 -05:00
committed by GitHub
parent 777a8e2bb4
commit 9e51038ad9
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
class C {
// Output should not use `_initialiseProps`
x: T;
y = 0;
constructor(T) {}
}

View File

@@ -0,0 +1,8 @@
class C {
// Output should not use `_initialiseProps`
constructor(T) {
this.x = void 0;
this.y = 0;
}
}

View File

@@ -0,0 +1,3 @@
{
"plugins": ["transform-typescript", ["transform-class-properties", {"loose": true }]]
}