Last active
February 11, 2020 02:57
-
-
Save omarkdev/4e550681929666e36b412060553a2d23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 setApiVersion(constructor) { | |
constructor.api = '0.0.1'; | |
} | |
@setApiVersion | |
class Wizard {} | |
console.log(Wizard); // { [Function: Wizard] api: '0.0.1' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment