跳到內容

plugin

本頁內容尚未翻譯。

function plugin<
S extends Top & {
DecodingServices: never
Encoded: Json
EncodingServices: never
},
E extends Top & {
DecodingServices: never
EncodingServices: never
},
D extends readonly Dependency[] = readonly [],
>(
contract: Contract<S, E>,
options: Options<D>,
): Plugin<
S["Encoded"],
S["Encoded"],
| RemoteWithdrawn
| RemoteError
| MissingInstance
| UndeclaredFailure
| E["Type"]
>

Defined in: index.ts:73

Fixes deployment options; business config is plugin input, and updates restart the execution unit.

Type Parameter Default type
S extends Top & { DecodingServices: never; Encoded: Json; EncodingServices: never; } -
E extends Top & { DecodingServices: never; EncodingServices: never; } -
D extends readonly Dependency[] readonly []
Parameter Type
contract Contract<S, E>
options Options<D>

Plugin<S["Encoded"], S["Encoded"], | RemoteWithdrawn | RemoteError | MissingInstance | UndeclaredFailure | E["Type"]>