default: {
    add: (plugin: ClientPlugin) => Promise<void>;
    del: (plugin: Pick<ClientPlugin, "uuid">) => Promise<void>;
    extra: (plugin: ClientPlugin, action: string) => Promise<void>;
    update: (plugin: ClientPlugin) => Promise<void>;
    usePlugins: () => [
        HPCClientPlugin[],
        {
            addOnePlugin: (plugin: HPCClientPlugin) => Promise<void>;
            delOnePlugin: (plugin: Pick<HPCClientPlugin, "key">) => Promise<void>;
            errorPlugins: Error;
            loadingPlugins: boolean;
            mutateOnePlugin: (plugin: Partial<HPCClientPlugin>) => Promise<void>;
        },
    ];
} = ...

Type declaration

  • add: (plugin: ClientPlugin) => Promise<void>
  • del: (plugin: Pick<ClientPlugin, "uuid">) => Promise<void>
  • extra: (plugin: ClientPlugin, action: string) => Promise<void>
  • update: (plugin: ClientPlugin) => Promise<void>
  • usePlugins: () => [
        HPCClientPlugin[],
        {
            addOnePlugin: (plugin: HPCClientPlugin) => Promise<void>;
            delOnePlugin: (plugin: Pick<HPCClientPlugin, "key">) => Promise<void>;
            errorPlugins: Error;
            loadingPlugins: boolean;
            mutateOnePlugin: (plugin: Partial<HPCClientPlugin>) => Promise<void>;
        },
    ]