跳到內容

Options

本頁內容尚未翻譯。

Defined in: Plugin.ts:208

Options shared by make, layer and service.

Type Parameter
Inject extends ReadonlyArray<Dependency>
readonly inject?: Inject;

Defined in: Plugin.ts:215


readonly name: string;

Defined in: Plugin.ts:214

Labels the plugin in logs, spans and the fork tree. Build it like an Effect service key: the package, the module path, then the binding unless it is the module’s default export, such as @acme/graft-plugin-db/migrations.


readonly overlap?: boolean;

Defined in: Plugin.ts:219

Whether serving is safe alongside another attempt. Defaults to false.


readonly provides?: readonly Provided[];

Defined in: Plugin.ts:217

Describes the local services and contract operations this implementation provides.


readonly retry?: Schedule<unknown, unknown, never, never>;

Defined in: Plugin.ts:221

Restarts a failed plugin on this schedule; without it, a failed plugin waits for a change.