From da6e1df293ce46bc4d0c84645db61feea2881aa7 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 24 Nov 2021 13:20:13 -0500 Subject: [PATCH] fix: allows sync or async preview urls --- src/config/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/types.ts b/src/config/types.ts index 4ea2785c48a..72c2b7dd22f 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -25,7 +25,7 @@ type GeneratePreviewURLOptions = { token: string } -export type GeneratePreviewURL = (doc: Record, options: GeneratePreviewURLOptions) => Promise +export type GeneratePreviewURL = (doc: Record, options: GeneratePreviewURLOptions) => Promise | string export type EmailTransport = Email & { transport: Transporter;