Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function Foo() {
- return function (target) {
- target.prototype.bar = 'baz';
- }
- };
- @Foo()
- class Qux {
- constructor () {
- this.bar; // Property 'style' doesn't exist on type Qux
- console.log(this['bar']); // -> 'baz'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement