-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isInstalled #811
Comments
export interface IPlugin {
/**
* Checks if plugin is installed
*/
installed?(): boolean;
pluginName?: string;
plugin?: string;
pluginRef?: string;
repo?: string;
platforms?: string[];
}
export class Camera implements IPlugin { ... } |
I see you closed the related issue, but I haven't been able to find any documentation on how to actually use this. What I am trying to really get to is dynamically being able to see if the plugin is installed on a given platform without having to know before hand if that platform is supported. |
Right now
installed
is not shipped as part of any typing for plugins, despite being available on every plugin. This makes it impossible to quickly check if a plugin is installed w/o doing something likeCamera['installed']()
Either add this as a type, or export an
isInstalled
function that takes the class as an arg:isInstalled(Camera)
The text was updated successfully, but these errors were encountered: