Definition
本頁內容尚未翻譯。
Defined in: Plugin.ts:154
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Config |
Input |
E |
Properties
Section titled “Properties”~@graftland/graft/Plugin
Section titled “~@graftland/graft/Plugin”readonly "~@graftland/graft/Plugin": "~@graftland/graft/Plugin";Defined in: Plugin.ts:155
~@graftland/graft/Plugin/Contract
Section titled “~@graftland/graft/Plugin/Contract”readonly "~@graftland/graft/Plugin/Contract": { error: 0 extends 1 & E ? unknown : (value: E) => E; input: 0 extends 1 & Input ? unknown : (value: Input) => Input;};Defined in: Plugin.ts:156
readonly error: 0 extends 1 & E ? unknown : (value: E) => E;readonly input: 0 extends 1 & Input ? unknown : (value: Input) => Input;readonly apply: (config: Config) => Effect< | void| Update<Config, E, unknown>, E, unknown>;Defined in: Plugin.ts:174
Runs only inside an activation, which provides whatever apply needs.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config |
Config |
Returns
Section titled “Returns”Effect< | void |
Update<Config, E,
unknown>, E, unknown>
config
Section titled “config”readonly config: Top | undefined;Defined in: Plugin.ts:162
The public configuration schema, when the plugin declares one.
decode
Section titled “decode”readonly decode: (input: Input) => Effect<Config, SchemaError, unknown>;Defined in: Plugin.ts:170
Runs only inside an activation, which provides whatever decoding needs.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
Input |
Returns
Section titled “Returns”Effect<Config, SchemaError, unknown>
inject
Section titled “inject”readonly inject: readonly Dependency[];Defined in: Plugin.ts:163
readonly name: string;Defined in: Plugin.ts:160
overlap
Section titled “overlap”readonly overlap: boolean;Defined in: Plugin.ts:167
Declares that serving may overlap another attempt; does not enable transitions.
provides
Section titled “provides”readonly provides: readonly Provided[];Defined in: Plugin.ts:165
Declares exports; publishing still happens inside apply.
readonly retry: Schedule<unknown, unknown, never, never> | undefined;Defined in: Plugin.ts:168