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:319
Loads a plugin under the current scope. Closing that scope unloads it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
P extends Plugin |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
plugin |
P |
…args |
[InputOf<P>] extends [void] ? [input?: NoInfer<InputOf<P>>, options?: PluginOptions] : [input: NoInfer<InputOf<P>>, options?: PluginOptions] |
Returns
Section titled “Returns”Effect.Effect<Fork<InputOf<P>,
ErrorOf<P>>, never,
Graft | Scope.Scope>