Field 'fetchResult' doesn't exist on type 'Input' while npm run dev

Hi
I am following this below link for local pickup delivery options generator with network access:
https://shopify.dev/docs/apps/functions/input-output/network-access/using-network-access

Could someone please provide insights or guidance on how to resolve this error? Any help or suggestions would be greatly appreciated.

1 Like

Go into the directory for the extension and run:

shopify app function typegen

This will generate your types in api.ts and remove that error.