跳到內容

Update

本頁內容尚未翻譯。

type Update<Config, E = never, R = never> = (
next: Config,
) => Effect.Effect<boolean, never, Graft | Scope.Scope | R | Tasks<E>>

Defined in: Plugin.ts:56

Returned from apply to accept configuration changes in place. Resolving to false restarts the plugin with the new configuration instead.

Type Parameter Default type
Config -
E never
R never
Parameter Type
next Config

Effect.Effect<boolean, never, | Graft | Scope.Scope | R | Tasks<E>>