Skip to content

Commit

Permalink
fix: allows sync or async preview urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Nov 24, 2021
1 parent 01429b6 commit da6e1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da6e1df

Please sign in to comment.