[plugin-transform-typescript] Strip type imports used in Enums and object types (#9605)

* fix: strip type imports used in Enums and object types

* chore: update failing snapshot

* docs: correct TSPropertySignature comment

* fix: enum value should be considered a reference

* chore: add tests for TSPropertySignature and TSEnumMember
This commit is contained in:
Evan Henley
2019-02-28 15:03:12 -06:00
committed by Nicolò Ribaudo
parent 98ab1b6428
commit d72f3aa758
9 changed files with 84 additions and 6 deletions

View File

@@ -22,10 +22,8 @@ function () {
key: "invite",
value: function invite() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return function () {
var privacy = options.privacy || "Private";
console.log(this);
}.apply(this);
var privacy = options.privacy || "Private";
console.log(this);
}
}]);