Skip to content

Commit 092b700

Browse files
committed
fix BasePlugin type in documentation
1 parent dac6d8f commit 092b700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/melonjs/src/plugin/plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function patch(proto, name, fn) {
8787
* Register a plugin.
8888
* @name register
8989
* @memberof plugin
90-
* @param {BasePlugin} plugin - Plugin object to instantiate and register
90+
* @param {plugin.BasePlugin} plugin - Plugin object to instantiate and register
9191
* @param {string} [name=plugin.constructor.name] - a unique name for this plugin
9292
* @param {...*} [args] - all extra parameters will be passed to the plugin constructor
9393
* @example
@@ -137,7 +137,7 @@ export function register(plugin, name = plugin.toString().match(/ (\w+)/)[1]) {
137137
* @name get
138138
* @memberof plugin
139139
* @param {object|string} classType - the Class Object or registered name of the plugin to retreive
140-
* @returns {BasePlugin} a plugin instance or undefined
140+
* @returns {plugin.BasePlugin} a plugin instance or undefined
141141
*/
142142
export function get(classType) {
143143
for (const name in cache) {

0 commit comments

Comments
 (0)