You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of plugin is a result of quite a long research when we first created it. The only way we got it to work is by creating an interface Base.plugin() which requires at least one parameter, but also accepts an unlimited amount of parameters, each one being a plugin function.
The preferable API signature is
Base.withPlugins([plugin1, plugin2, ...])
Lots of things changed since the initial implementation.
@JoshuaKGoldberg maybe the improvements you too advantage of here will make this possible? Would that be something that you know is possible now or that you'd like to explore?
The text was updated successfully, but these errors were encountered:
If backwards compatibility is of concern, it could instead take in a Plugins extends [(Plugin | Plugin[]), ...(Plugin | Plugin[])[] in the definition and use Array.flat in the implementation. Either works!
The current implementation of plugin is a result of quite a long research when we first created it. The only way we got it to work is by creating an interface
Base.plugin()
which requires at least one parameter, but also accepts an unlimited amount of parameters, each one being a plugin function.The preferable API signature is
Lots of things changed since the initial implementation.
@JoshuaKGoldberg maybe the improvements you too advantage of here will make this possible? Would that be something that you know is possible now or that you'd like to explore?
The text was updated successfully, but these errors were encountered: