docs(plugins): update docs and plugin params

This commit is contained in:
Ibrahim Hadeed
2016-03-12 18:30:16 -05:00
parent 4d8dc1b9dc
commit a1bdff6b24
25 changed files with 149 additions and 35 deletions
+14
View File
@@ -134,6 +134,20 @@ export const wrap = function(pluginObj:any, methodName:string, opts:any = {}) {
/**
* Class decorator specifying Plugin metadata. Required for all plugins.
*
* @usage
* ```ts
* @Plugin({
* name: 'MyPlugin',
* plugin: 'cordova-plugin-myplugin',
* pluginRef: 'window.myplugin'
* })
* export class MyPlugin {
*
* // Plugin wrappers, properties, and functions go here ...
*
* }
* ```
*/
export function Plugin(config) {
return function(cls) {