Last active
October 31, 2019 13:16
-
-
Save gevgeny/83df2546d454788ebb2fa797a6d9bbfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function observable(target: any, propertyKey: string): PropertyDecorator { | |
console.log(`decorate ${propertyKey}`); | |
// This is property descriptor | |
return { | |
get() {}, | |
set() {}, | |
}; | |
} | |
class State { | |
@observable foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment