Skip to content

Commit

Permalink
fix: allow optional Link Resolver in resolvePreviewURL
Browse files Browse the repository at this point in the history
Closes #183
  • Loading branch information
angeloashmore committed Jul 8, 2021
1 parent 21633e0 commit 4321921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ type ResolvePreviewArgs = {
/**
* A function that maps a Prismic document to a URL within your app.
*/
linkResolver: prismicH.LinkResolverFunction;
linkResolver?: prismicH.LinkResolverFunction;

/**
* A fallback URL if the Link Resolver does not return a value.
Expand Down

0 comments on commit 4321921

Please sign in to comment.