Reproduction case for convertToBgImage TypeScript error which happened on version < 0.14 of gbimage-bridge (gatsby-background-image)
git clone https://github.com/asode/convertToBgImage-example.git
cd convertToBgImage-example/
npm install
npx tsc
This should print the following:
Argument of type 'IGatsbyImageData | undefined' is not assignable to parameter of type 'IGatsbyImageDataExtended | (string | IGatsbyImageDataExtended)[]'
Update the package gbimage-bridge to version 0.14 or greater.
npm update