Skip to content

asode/convertToBgImage-example

Repository files navigation

convertToBgImage-example

Reproduction case for convertToBgImage TypeScript error which happened on version < 0.14 of gbimage-bridge (gatsby-background-image)

How to run

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)[]'

How to fix

Update the package gbimage-bridge to version 0.14 or greater.

npm update

About

Reproduction case for convertToBgImage TypeScript error

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published