Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 4e06d25

Browse files
committed
Fix: Rename decorator example to avoid issue in TS 2.x (refs #105)
1 parent 45b9874 commit 4e06d25

4 files changed

+6
-6
lines changed

tests/fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.result.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = {
162162
"column": 13
163163
}
164164
},
165-
"name": "readonly"
165+
"name": "onlyRead"
166166
},
167167
"arguments": [
168168
{
@@ -285,7 +285,7 @@ module.exports = {
285285
},
286286
{
287287
"type": "Identifier",
288-
"value": "readonly",
288+
"value": "onlyRead",
289289
"range": [
290290
15,
291291
23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class B {
2-
@readonly(false)
2+
@onlyRead(false)
33
instanceMethod() {}
44
}

tests/fixtures/typescript/decorators/method-decorators/method-decorator-instance-member.result.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ module.exports = {
146146
"column": 13
147147
}
148148
},
149-
"name": "readonly"
149+
"name": "onlyRead"
150150
}
151151
]
152152
}
@@ -247,7 +247,7 @@ module.exports = {
247247
},
248248
{
249249
"type": "Identifier",
250-
"value": "readonly",
250+
"value": "onlyRead",
251251
"range": [
252252
15,
253253
23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class A {
2-
@readonly
2+
@onlyRead
33
instanceMethod() {}
44
}

0 commit comments

Comments
 (0)