@prismshadow/penguin-library-plugin · library/plugin/src/ports.ts:96

PluginUninstallWorkbenches

interface

The workbench service, as far as a plugin's uninstall reads it (the server's Workbenches satisfies this structurally). remove throws when the workbench is gone; notFound tells such an error from a real failure, so a part already removed is not reported as one.

API

@Interface()
export abstract class PluginUninstallWorkbenches {
  abstract remove(projectId: string, agentId: string, workbenchId: string): Promise<void>;
  abstract notFound(err: unknown): boolean;
}

Members (2)

remove

remove(projectId: string, agentId: string, workbenchId: string): Promise<void>
@paramprojectIdstring
@paramagentIdstring
@paramworkbenchIdstring
@returnsPromise<void>

notFound

notFound(err: unknown): boolean
@paramerrunknown
@returnsboolean