Skip to content

Commit

Permalink
fix: correct types for resolveWidth and resolveHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Apr 30, 2021
1 parent 6c101dc commit 5788045
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pluginHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ export const createImgixGatsbyTypes = ({
...params
}: Omit<
Parameters<typeof buildImgixGatsbyTypes>[0],
'imgixClient' | 'resolveUrl'
'imgixClient' | 'resolveUrl' | 'resolveWidth' | 'resolveHeight'
> & {
imgixClientOptions?: Parameters<typeof createImgixURLBuilder>[0];
resolveUrl: (source: any) => string | null;
resolveWidth?: (source: any) => number | undefined;
resolveHeight?: (source: any) => number | undefined;
}) =>
buildImgixGatsbyTypes({
...params,
Expand Down

0 comments on commit 5788045

Please sign in to comment.