chore: Remove the of

This commit is contained in:
BluJ
2023-05-17 15:04:53 -06:00
parent 0676b67cd3
commit 5fe09d6af1

View File

@@ -69,7 +69,6 @@ export type Utils<Store, Vault, WrapperOverWrite = { const: never }> = {
}) => Promise<null | string> }) => Promise<null | string>
getSystemSmtp: () => GetSystemSmtp & WrapperOverWrite getSystemSmtp: () => GetSystemSmtp & WrapperOverWrite
host: { host: {
of: (options: { kind: "static" | "single" | "multi"; id: string }) => Host
static: (id: string) => StaticHost static: (id: string) => StaticHost
single: (id: string) => SingleHost single: (id: string) => SingleHost
multi: (id: string) => MultiHost multi: (id: string) => MultiHost
@@ -158,8 +157,6 @@ export const utils = <
new GetSystemSmtp(effects) as GetSystemSmtp & WrapperOverWrite, new GetSystemSmtp(effects) as GetSystemSmtp & WrapperOverWrite,
host: { host: {
of: (options: { kind: "static" | "single" | "multi"; id: string }) =>
new Host({ ...options, effects }),
static: (id: string) => new StaticHost({ id, effects }), static: (id: string) => new StaticHost({ id, effects }),
single: (id: string) => new SingleHost({ id, effects }), single: (id: string) => new SingleHost({ id, effects }),
multi: (id: string) => new MultiHost({ id, effects }), multi: (id: string) => new MultiHost({ id, effects }),