Added more explicit type for SMTP config and refactored transport initialization.
This commit is contained in:
parent
d2ca8ed55b
commit
13e4895b81
6 changed files with 84 additions and 43 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue