跳转到内容

plugin

此内容尚不支持你的语言。

const plugin: <P>(
plugin: P,
...args: [InputOf<P>] extends [void]
? [input?: NoInfer<InputOf<P>>, options?: PluginOptions]
: [input: NoInfer<InputOf<P>>, options?: PluginOptions]
) => Effect.Effect<Fork<InputOf<P>, ErrorOf<P>>, never, Graft | Scope.Scope>

Defined in: Graft.ts:350

Loads a plugin under the current scope. Closing that scope unloads it.

Type Parameter
P extends Plugin
Parameter Type
plugin P
…args [InputOf<P>] extends [void] ? [input?: NoInfer<InputOf<P>>, options?: PluginOptions] : [input: NoInfer<InputOf<P>>, options?: PluginOptions]

Effect.Effect<Fork<InputOf<P>, ErrorOf<P>>, never, Graft | Scope.Scope>