knockout-js-object-wrapper READMEIf you're using TypeScript, remove TypeScript annotation from the object you want to wrap. Next, select a JavaScript object, making sure not to select code that surrounds the object -- other than its declaration and its terminating semicolon/newline. Finally, execute the command "Wrap Javascript object in Knockout.js". The extension will then wrap every value in the appropriate Knockout.js observable and paste the result below the object you selected. For instance, if you execute the command after selecting this:
the result will be
If you'd like to add functionality, feel free to make a pull request. |