Added more explicit type for SMTP config and refactored transport initialization.

This commit is contained in:
baldo 2022-07-28 14:45:28 +02:00
commit 13e4895b81
6 changed files with 84 additions and 43 deletions

View file

@ -344,6 +344,9 @@ export const isMAC = toIsNewtype(isString, "" as MAC);
export type DurationSeconds = number & { readonly __tag: unique symbol };
export const isDurationSeconds = toIsNewtype(isNumber, NaN as DurationSeconds);
export type DurationMilliseconds = number & { readonly __tag: unique symbol };
export const isDurationMilliseconds = toIsNewtype(isNumber, NaN as DurationMilliseconds);
export type UnixTimestampSeconds = number & { readonly __tag: unique symbol };
export const isUnixTimestampSeconds = toIsNewtype(isNumber, NaN as UnixTimestampSeconds);