Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. export function Foo() {
  2. return function (target) {
  3. target.prototype.bar = 'baz';
  4. }
  5. };
  6.  
  7. @Foo()
  8. class Qux {
  9. constructor () {
  10. this.bar; // Property 'style' doesn't exist on type Qux
  11. console.log(this['bar']); // -> 'baz'
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement