Skip to content

Instantly share code, notes, and snippets.

@gevgeny
Last active October 30, 2019 19:29
Show Gist options
  • Save gevgeny/4d0ab31205d70110a6f500c569112b26 to your computer and use it in GitHub Desktop.
Save gevgeny/4d0ab31205d70110a6f500c569112b26 to your computer and use it in GitHub Desktop.
function observable(target, propertyKey) {
console.log(`decorate ${propertyKey}`);
}
class State {
}
observable(State.prototype, "foo");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment