跳到內容

Connect

本頁內容尚未翻譯。

type Connect<D extends ReadonlyArray<Plugin.Dependency> = readonly []> =
typeof Configuration.Connect.Encoded extends infer C
? C extends
| {
local: object
}
| {
worker: object
}
| {
command: ReadonlyArray<string>
}
? C
: Omit<C, "auth"> & {
auth?: Authentication<D>
}
: never

Defined in: host/credentials.ts:34

Type Parameter Default type
D extends ReadonlyArray<Plugin.Dependency> readonly []