We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3f333 commit c355f77Copy full SHA for c355f77
test/fixtures/typescript/src/App.ts
@@ -11,22 +11,17 @@ class App {
11
static foo: MyObject = { bar: true, baz: { n: 123 } };
12
n = App.foo.baz!.n;
13
@propertyDecorator
14
- decorated;
+ decorated = 5;
15
}
16
17
function annotation(target: any) {
18
target.annotated = true;
19
20
21
function propertyDecorator(target: any, key: string) {
22
- if (delete target[key]) {
23
- Object.defineProperty(target, key, {
24
- get() {
25
- return 42;
26
- },
27
- enumerable: true,
28
- });
29
- }
+ arguments[2].initializer = function() {
+ return 42;
+ };
30
31
32
export default App;
0 commit comments