fix: allows sync or async preview urls
This commit is contained in:
@@ -25,7 +25,7 @@ type GeneratePreviewURLOptions = {
|
||||
token: string
|
||||
}
|
||||
|
||||
export type GeneratePreviewURL = (doc: Record<string, unknown>, options: GeneratePreviewURLOptions) => Promise<string>
|
||||
export type GeneratePreviewURL = (doc: Record<string, unknown>, options: GeneratePreviewURLOptions) => Promise<string> | string
|
||||
|
||||
export type EmailTransport = Email & {
|
||||
transport: Transporter;
|
||||
|
||||
Reference in New Issue
Block a user